Skip to content

Commit

Permalink
Merge pull request #2694 from monopole/switchToApiV0_5_0
Browse files Browse the repository at this point in the history
Switch to kustomize/api v0.5.0
  • Loading branch information
monopole authored Jul 5, 2020
2 parents def0022 + 5a02286 commit 6a50372
Show file tree
Hide file tree
Showing 29 changed files with 63 additions and 63 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ all: verify-kustomize
verify-kustomize: \
lint-kustomize \
test-unit-kustomize-all \
test-examples-kustomize-against-HEAD \
test-examples-kustomize-against-3.7.0
test-examples-kustomize-against-HEAD
# test-examples-kustomize-against-3.7.0

# The following target referenced by a file in
# https://github.com/kubernetes/test-infra/tree/master/config/jobs/kubernetes-sigs/kustomize
Expand All @@ -24,9 +24,9 @@ prow-presubmit-check: \
lint-kustomize \
test-unit-kustomize-all \
test-examples-kustomize-against-HEAD \
test-examples-kustomize-against-3.7.0 \
test-unit-cmd-all \
test-go-mod
# test-examples-kustomize-against-3.7.0 \
.PHONY: verify-kustomize-e2e
verify-kustomize-e2e: test-examples-e2e-kustomize
Expand Down
14 changes: 7 additions & 7 deletions examples/patchMultipleObjects.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,16 @@ spec:
old-label: old-value
spec:
containers:
- args:
- proxy
- sidecar
image: docker.io/istio/proxyv2
name: istio-proxy
- args:
- one
- two
image: nginx
name: nginx
- args:
- proxy
- sidecar
image: docker.io/istio/proxyv2
name: istio-proxy
---
apiVersion: apps/v1
kind: Deployment
Expand All @@ -184,13 +184,13 @@ spec:
key: value
spec:
containers:
- image: busybox
name: busybox
- args:
- proxy
- sidecar
image: docker.io/istio/proxyv2
name: istio-proxy
- image: busybox
name: busybox
EOF
```
Expand Down
2 changes: 1 addition & 1 deletion kustomize/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.5
k8s.io/client-go v0.17.3
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/kustomize/cmd/config v0.2.0
sigs.k8s.io/yaml v1.2.0
)
Expand Down
4 changes: 2 additions & 2 deletions kustomize/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,8 @@ sigs.k8s.io/controller-runtime v0.4.0 h1:wATM6/m+3w8lj8FXNaO6Fs/rq/vqoOjO1Q116Z9
sigs.k8s.io/controller-runtime v0.4.0/go.mod h1:ApC79lpY3PHW9xj/w9pj+lYkLgwAAUZwfXkME1Lajns=
sigs.k8s.io/kustomize v2.0.3+incompatible h1:JUufWFNlI44MdtnjUqVnvh29rR37PQFzPbLXqhyOyX0=
sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU=
sigs.k8s.io/kustomize/api v0.4.2 h1:ETPJPgfpWYXxXZw8n4EzuoIzmb8vSEwNx4Lr4/E6hGs=
sigs.k8s.io/kustomize/api v0.4.2/go.mod h1:OND6MoJxF5BoS3IiAqDjPKdI7c+oTSaxuXKbljPbwNU=
sigs.k8s.io/kustomize/api v0.5.0 h1:LT/Yxm6J8M9BJoLxfYIwGWamvuGSPQl7ELQXdlOR/fY=
sigs.k8s.io/kustomize/api v0.5.0/go.mod h1:OND6MoJxF5BoS3IiAqDjPKdI7c+oTSaxuXKbljPbwNU=
sigs.k8s.io/kustomize/cmd/config v0.2.0 h1:VNAWKb1JLl7dFjMAD5MwdZpGjreN3qL63C8DKtsUYck=
sigs.k8s.io/kustomize/cmd/config v0.2.0/go.mod h1:oXzY7QJS6JlmWgusEjra2O3cW7GSIICXa59/3DvjBfE=
sigs.k8s.io/kustomize/kyaml v0.1.4/go.mod h1:461i94nj0h0ylJ6w83jLkR4SqqVhn1iY6fjD0JSTQeE=
Expand Down
4 changes: 2 additions & 2 deletions plugin/builtin/annotationstransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module sigs.k8s.io/kustomize/plugin/builtin/annotationstransformer
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/kustomize/kyaml v0.3.4
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/configmapgenerator/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module sigs.k8s.io/kustomize/plugin/builtin/configmapgenerator
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/hashtransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module sigs.k8s.io/kustomize/plugin/builtin/hashtransformer

go 1.14

require sigs.k8s.io/kustomize/api v0.4.2
require sigs.k8s.io/kustomize/api v0.5.0

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/imagetagtransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module sigs.k8s.io/kustomize/plugin/builtin/imagetagtransformer
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/labeltransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module sigs.k8s.io/kustomize/plugin/builtin/labeltransformer
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/kustomize/kyaml v0.3.4
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/legacyordertransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.14

require (
github.com/pkg/errors v0.8.1
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/namespacetransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module sigs.k8s.io/kustomize/plugin/builtin/namespacetransformer
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/kustomize/kyaml v0.3.4
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/patchjson6902transformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ go 1.14
require (
github.com/evanphx/json-patch v4.5.0+incompatible
github.com/pkg/errors v0.8.1
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/kustomize/kyaml v0.3.4
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/patchstrategicmergetransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module sigs.k8s.io/kustomize/plugin/builtin/patchstrategicmergetransformer
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/kustomize/kyaml v0.3.4
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/patchtransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ go 1.14
require (
github.com/evanphx/json-patch v4.5.0+incompatible
github.com/pkg/errors v0.8.1
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/kustomize/kyaml v0.3.4
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/prefixsuffixtransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module sigs.k8s.io/kustomize/plugin/builtin/prefixsuffixtransformer
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/replicacounttransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module sigs.k8s.io/kustomize/plugin/builtin/replicacounttransformer
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/secretgenerator/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module sigs.k8s.io/kustomize/plugin/builtin/secretgenerator
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/builtin/valueaddtransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/valueaddtransformer
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/kustomize/kyaml v0.3.4
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/bashedconfigmap/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/bashedconfigmap

go 1.14

require sigs.k8s.io/kustomize/api v0.4.2
require sigs.k8s.io/kustomize/api v0.5.0

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/chartinflator/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/chartinflator

go 1.14

require sigs.k8s.io/kustomize/api v0.4.2
require sigs.k8s.io/kustomize/api v0.5.0

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/dateprefixer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.14

require (
github.com/pkg/errors v0.8.1
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/gogetter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/gogetter

go 1.14

require sigs.k8s.io/kustomize/api v0.4.2
require sigs.k8s.io/kustomize/api v0.5.0

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/printpluginenv/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/printworkdir

go 1.14

require sigs.k8s.io/kustomize/api v0.4.2
require sigs.k8s.io/kustomize/api v0.5.0

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/replacementtransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/replacementtransform
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/secretsfromdatabase/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/secretsfromdatabase
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/sedtransformer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/sedtransformer

go 1.14

require sigs.k8s.io/kustomize/api v0.4.2
require sigs.k8s.io/kustomize/api v0.5.0

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/someservicegenerator/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/someservicegenerator
go 1.14

require (
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/stringprefixer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.14

require (
github.com/pkg/errors v0.8.1
sigs.k8s.io/kustomize/api v0.4.2
sigs.k8s.io/kustomize/api v0.5.0
sigs.k8s.io/yaml v1.2.0
)

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api
4 changes: 2 additions & 2 deletions plugin/someteam.example.com/v1/validator/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/validator

go 1.14

require sigs.k8s.io/kustomize/api v0.4.2
require sigs.k8s.io/kustomize/api v0.5.0

replace sigs.k8s.io/kustomize/api v0.4.2 => ../../../../api
replace sigs.k8s.io/kustomize/api v0.5.0 => ../../../../api

0 comments on commit 6a50372

Please sign in to comment.