mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Update golinter to 1.17.1
This commit is contained in:
@@ -23,12 +23,9 @@ go:
|
|||||||
|
|
||||||
go_import_path: sigs.k8s.io/kustomize
|
go_import_path: sigs.k8s.io/kustomize
|
||||||
|
|
||||||
env:
|
|
||||||
- GOLANGCI_RELEASE="v1.12"
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- source ./travis/consider-early-travis-exit.sh
|
- 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
|
- go get -u github.com/monopole/mdrip
|
||||||
# The following would install Helm if needed for some reason.
|
# 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
|
# - wget https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz
|
||||||
|
|||||||
@@ -12,10 +12,7 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/pkg/gvk"
|
"sigs.k8s.io/kustomize/pkg/gvk"
|
||||||
)
|
)
|
||||||
|
|
||||||
var service = gvk.Gvk{Version: "v1", Kind: "Service"}
|
|
||||||
var secret = gvk.Gvk{Version: "v1", Kind: "Secret"}
|
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) {
|
func TestConfigMapHash(t *testing.T) {
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ func (p *plugin) makePrefixSuffixPluginConfig() ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *plugin) Config(
|
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.
|
// Ignore the incoming c, compute new config.
|
||||||
c, err := p.makePrefixSuffixPluginConfig()
|
c, err := p.makePrefixSuffixPluginConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ spec:
|
|||||||
`
|
`
|
||||||
|
|
||||||
func (p *plugin) Config(
|
func (p *plugin) Config(
|
||||||
ldr ifc.Loader, rf *resmap.Factory, config []byte) error {
|
_ ifc.Loader, rf *resmap.Factory, config []byte) error {
|
||||||
p.rf = rf
|
p.rf = rf
|
||||||
return yaml.Unmarshal(config, p)
|
return yaml.Unmarshal(config, p)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user