Update golangci/golangci-lint to v1.56.2

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas
2024-12-13 07:55:18 -05:00
parent b79c5f652d
commit 84e6594e9b
25 changed files with 854 additions and 746 deletions

View File

@@ -184,6 +184,7 @@ func (p *plugin) runHelmCommand(
}
if err != nil {
helm := p.h.GeneralConfig().HelmConfig.Command
//nolint:govet
err = errors.WrapPrefixf(
fmt.Errorf(
"unable to run: '%s %s' with env=%s (is '%s' installed?): %w",
@@ -306,7 +307,7 @@ func (p *plugin) Generate() (rm resmap.ResMap, err error) {
}
// try to remove the contents before first "---" because
// helm may produce messages to stdout before it
r := &kio.ByteReader{Reader: bytes.NewBufferString(string(stdout)), OmitReaderAnnotations: true}
r := &kio.ByteReader{Reader: bytes.NewBuffer(stdout), OmitReaderAnnotations: true}
nodes, err := r.Read()
if err != nil {
return nil, fmt.Errorf("error reading helm output: %w", err)

View File

@@ -15,6 +15,8 @@ import (
)
// Change or set the namespace of non-cluster level resources.
//
//nolint:tagalign
type plugin struct {
types.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
FieldSpecs []types.FieldSpec `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"`