Skip to content

Introduce support for Catalogs that enable specifying KRMFunctions #6464

Introduce support for Catalogs that enable specifying KRMFunctions

Introduce support for Catalogs that enable specifying KRMFunctions #6464

Triggered via pull request January 5, 2024 20:56
Status Failure
Total duration 5m 50s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 4 warnings
Lint: api/internal/target/kusttarget.go#L263
Consider pre-allocating `catalogs` (prealloc)
Lint: api/internal/plugins/fnplugin/fnplugin_test.go#L17
factory is a global variable (gochecknoglobals)
Lint: api/internal/plugins/fnplugin/fnplugin.go#L66
S1009: should omit nil check; len() for []sigs.k8s.io/kustomize/kyaml/fn/framework.Catalog is defined as zero (gosimple)
Lint: api/internal/target/kusttarget.go#L272
error returned from interface method should be wrapped: sig: func (sigs.k8s.io/kustomize/api/ifc.Loader).Load(location string) ([]byte, error) (wrapcheck)
Lint: api/internal/target/kusttarget.go#L285
error returned from external package is unwrapped: sig: func (*encoding/json.Decoder).Decode(v any) error (wrapcheck)
Lint: api/internal/target/kusttarget.go#L413
error returned from external package is unwrapped: sig: func (*sigs.k8s.io/kustomize/api/internal/plugins/loader.Loader).LoadTransformers(ldr sigs.k8s.io/kustomize/api/ifc.Loader, v sigs.k8s.io/kustomize/api/ifc.Validator, rm sigs.k8s.io/kustomize/api/resmap.ResMap, catalogs []sigs.k8s.io/kustomize/kyaml/fn/framework.Catalog) ([]*sigs.k8s.io/kustomize/api/resmap.TransformerWithProperties, error) (wrapcheck)
Lint: api/internal/plugins/fnplugin/fnplugin.go#L69
error returned from external package is unwrapped: sig: func sigs.k8s.io/kustomize/kyaml/fn/framework.FindMatchingFunctionSpec(res *sigs.k8s.io/kustomize/kyaml/yaml.RNode, catalogs []sigs.k8s.io/kustomize/kyaml/fn/framework.Catalog) (*sigs.k8s.io/kustomize/kyaml/fn/runtime/runtimeutil.FunctionSpec, error) (wrapcheck)
Lint
Process completed with exit code 2.
Test Linux
syntax error: unexpected var after top level declaration
Test Linux
Process completed with exit code 2.
Test MacOS
syntax error: unexpected var after top level declaration
Test MacOS
Process completed with exit code 2.
Test Windows
Restore cache failed: Dependencies file is not found in D:\a\kustomize\kustomize. Supported file pattern: go.sum
Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/kustomize/kustomize. Supported file pattern: go.sum
Test Linux
Restore cache failed: Dependencies file is not found in /home/runner/work/kustomize/kustomize. Supported file pattern: go.sum
Test MacOS
Restore cache failed: Dependencies file is not found in /Users/runner/work/kustomize/kustomize. Supported file pattern: go.sum