Update golinter to 1.17.1

This commit is contained in:
jregan
2019-06-12 19:52:04 -07:00
parent 3128b25236
commit 08b6f6f4e4
4 changed files with 3 additions and 9 deletions

View File

@@ -23,12 +23,9 @@ go:
go_import_path: sigs.k8s.io/kustomize
env:
- GOLANGCI_RELEASE="v1.12"
before_install:
- source ./travis/consider-early-travis-exit.sh
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin ${GOLANGCI_RELEASE}
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.17.1
- go get -u github.com/monopole/mdrip
# The following would install Helm if needed for some reason.
# - wget https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz

View File

@@ -12,10 +12,7 @@ import (
"sigs.k8s.io/kustomize/pkg/gvk"
)
var service = gvk.Gvk{Version: "v1", Kind: "Service"}
var secret = gvk.Gvk{Version: "v1", Kind: "Secret"}
var cmap = gvk.Gvk{Version: "v1", Kind: "ConfigMap"}
var deploy = gvk.Gvk{Group: "apps", Version: "v1", Kind: "Deployment"}
func TestConfigMapHash(t *testing.T) {
cases := []struct {

View File

@@ -35,7 +35,7 @@ func (p *plugin) makePrefixSuffixPluginConfig() ([]byte, error) {
}
func (p *plugin) Config(
ldr ifc.Loader, rf *resmap.Factory, c []byte) error {
ldr ifc.Loader, rf *resmap.Factory, _ []byte) error {
// Ignore the incoming c, compute new config.
c, err := p.makePrefixSuffixPluginConfig()
if err != nil {

View File

@@ -36,7 +36,7 @@ spec:
`
func (p *plugin) Config(
ldr ifc.Loader, rf *resmap.Factory, config []byte) error {
_ ifc.Loader, rf *resmap.Factory, config []byte) error {
p.rf = rf
return yaml.Unmarshal(config, p)
}