mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 09:51:23 +00:00
Compare commits
15 Commits
api/v0.8.1
...
kustomize/
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
516ff1fa56 | ||
|
|
81562a7a37 | ||
|
|
ba0baa828c | ||
|
|
420f03d429 | ||
|
|
6cf48442df | ||
|
|
8cf7bc67bb | ||
|
|
48d6af6e38 | ||
|
|
0309a0fb07 | ||
|
|
d7b29455ab | ||
|
|
a414f75f1b | ||
|
|
1c3832f897 | ||
|
|
3ec62c6e26 | ||
|
|
c7ee4c281e | ||
|
|
471ff0c4bb | ||
|
|
cd0d416a11 |
16
Makefile
16
Makefile
@@ -26,8 +26,8 @@ verify-kustomize: \
|
|||||||
lint-kustomize \
|
lint-kustomize \
|
||||||
test-unit-kustomize-all \
|
test-unit-kustomize-all \
|
||||||
test-examples-kustomize-against-HEAD \
|
test-examples-kustomize-against-HEAD \
|
||||||
test-examples-kustomize-against-3.9 \
|
test-examples-kustomize-against-4.0 \
|
||||||
test-examples-kustomize-against-3.8
|
test-examples-kustomize-against-3.10
|
||||||
|
|
||||||
# The following target referenced by a file in
|
# The following target referenced by a file in
|
||||||
# https://github.com/kubernetes/test-infra/tree/master/config/jobs/kubernetes-sigs/kustomize
|
# https://github.com/kubernetes/test-infra/tree/master/config/jobs/kubernetes-sigs/kustomize
|
||||||
@@ -39,8 +39,8 @@ prow-presubmit-check: \
|
|||||||
test-unit-cmd-all \
|
test-unit-cmd-all \
|
||||||
test-go-mod \
|
test-go-mod \
|
||||||
test-examples-kustomize-against-HEAD \
|
test-examples-kustomize-against-HEAD \
|
||||||
test-examples-kustomize-against-3.9 \
|
test-examples-kustomize-against-4.0 \
|
||||||
test-examples-kustomize-against-3.8
|
test-examples-kustomize-against-3.10
|
||||||
|
|
||||||
.PHONY: verify-kustomize-e2e
|
.PHONY: verify-kustomize-e2e
|
||||||
verify-kustomize-e2e: test-examples-e2e-kustomize
|
verify-kustomize-e2e: test-examples-e2e-kustomize
|
||||||
@@ -281,12 +281,12 @@ test-examples-kustomize-against-HEAD: $(MYGOBIN)/kustomize $(MYGOBIN)/mdrip
|
|||||||
./hack/testExamplesAgainstKustomize.sh HEAD
|
./hack/testExamplesAgainstKustomize.sh HEAD
|
||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
test-examples-kustomize-against-3.9: $(MYGOBIN)/mdrip
|
test-examples-kustomize-against-4.0: $(MYGOBIN)/mdrip
|
||||||
./hack/testExamplesAgainstKustomize.sh v3.9.3
|
./hack/testExamplesAgainstKustomize.sh v4.0.0
|
||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
test-examples-kustomize-against-3.8: $(MYGOBIN)/mdrip
|
test-examples-kustomize-against-3.10: $(MYGOBIN)/mdrip
|
||||||
./hack/testExamplesAgainstKustomize.sh v3.8.10
|
./hack/testExamplesAgainstKustomize.sh v3.10.0
|
||||||
|
|
||||||
# linux only.
|
# linux only.
|
||||||
# This is for testing an example plugin that
|
# This is for testing an example plugin that
|
||||||
|
|||||||
@@ -18,3 +18,5 @@ require (
|
|||||||
sigs.k8s.io/kustomize/kyaml v0.10.10
|
sigs.k8s.io/kustomize/kyaml v0.10.10
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/kyaml => ../kyaml
|
||||||
|
|||||||
@@ -462,8 +462,6 @@ mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphD
|
|||||||
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
||||||
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f h1:Cq7MalBHYACRd6EesksG1Q8EoIAKOsiZviGKbOLIej4=
|
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f h1:Cq7MalBHYACRd6EesksG1Q8EoIAKOsiZviGKbOLIej4=
|
||||||
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10 h1:caAxDDkaXZp+0kDsZVik4leFJV8LCy09PdVqpaoNeF4=
|
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10/go.mod h1:K9yg1k/HB/6xNOf5VH3LhTo1DK9/5ykSZO5uIv+Y/1k=
|
|
||||||
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
|
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
|
||||||
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
||||||
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4 h1:JPJh2pk3+X4lXAkZIk2RuE/7/FoK9maXw+TNPJhVS/c=
|
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4 h1:JPJh2pk3+X4lXAkZIk2RuE/7/FoK9maXw+TNPJhVS/c=
|
||||||
|
|||||||
@@ -394,8 +394,8 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt
|
|||||||
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
||||||
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
||||||
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.9 h1:n3WNdvPPReRNDxW+XXd2JlyZ8EII721I21D1DBpBVBE=
|
sigs.k8s.io/kustomize/kyaml v0.10.10 h1:caAxDDkaXZp+0kDsZVik4leFJV8LCy09PdVqpaoNeF4=
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.9/go.mod h1:K9yg1k/HB/6xNOf5VH3LhTo1DK9/5ykSZO5uIv+Y/1k=
|
sigs.k8s.io/kustomize/kyaml v0.10.10/go.mod h1:K9yg1k/HB/6xNOf5VH3LhTo1DK9/5ykSZO5uIv+Y/1k=
|
||||||
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
|
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
|
||||||
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
||||||
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
|
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
|
||||||
|
|||||||
@@ -19,3 +19,5 @@ require (
|
|||||||
gopkg.in/inf.v0 v0.9.1
|
gopkg.in/inf.v0 v0.9.1
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10
|
sigs.k8s.io/kustomize/kyaml v0.10.10
|
||||||
)
|
)
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/kyaml => ../../kyaml
|
||||||
|
|||||||
@@ -301,5 +301,3 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
|||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10 h1:caAxDDkaXZp+0kDsZVik4leFJV8LCy09PdVqpaoNeF4=
|
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10/go.mod h1:K9yg1k/HB/6xNOf5VH3LhTo1DK9/5ykSZO5uIv+Y/1k=
|
|
||||||
|
|||||||
@@ -6,9 +6,11 @@ require (
|
|||||||
github.com/rakyll/statik v0.1.7
|
github.com/rakyll/statik v0.1.7
|
||||||
github.com/spf13/cobra v1.0.0
|
github.com/spf13/cobra v1.0.0
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10
|
sigs.k8s.io/kustomize/kyaml v0.10.10
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../api
|
replace sigs.k8s.io/kustomize/api => ../../api
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/kyaml => ../../kyaml
|
||||||
|
|||||||
@@ -391,8 +391,6 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt
|
|||||||
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
||||||
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
||||||
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10 h1:caAxDDkaXZp+0kDsZVik4leFJV8LCy09PdVqpaoNeF4=
|
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10/go.mod h1:K9yg1k/HB/6xNOf5VH3LhTo1DK9/5ykSZO5uIv+Y/1k=
|
|
||||||
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
|
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
|
||||||
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
||||||
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
|
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
|
||||||
|
|||||||
85
hack/makeKubectlPr.sh
Normal file
85
hack/makeKubectlPr.sh
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
repoDir=$HOME/gopath/src/k8s.io/kubernetes
|
||||||
|
k8sio=staging/src/k8s.io
|
||||||
|
|
||||||
|
function saveIt {
|
||||||
|
mkdir -p ~/safe/$1
|
||||||
|
cp $1/$2 ~/safe/$1
|
||||||
|
}
|
||||||
|
|
||||||
|
function getIt {
|
||||||
|
cp ~/safe/$1/$2 $1/$2
|
||||||
|
}
|
||||||
|
|
||||||
|
function doSave {
|
||||||
|
rm -rf ~/safe
|
||||||
|
mkdir ~/safe
|
||||||
|
|
||||||
|
saveIt ${k8sio}/cli-runtime/pkg/resource builder.go
|
||||||
|
saveIt ${k8sio}/cli-runtime/pkg/resource kustomizevisitor.go
|
||||||
|
saveIt ${k8sio}/cli-runtime/pkg/resource kustomizevisitor_test.go
|
||||||
|
saveIt ${k8sio}/cli-runtime/pkg/resource visitor.go
|
||||||
|
|
||||||
|
saveIt ${k8sio}/kubectl/pkg/cmd/kustomize kustomize.go
|
||||||
|
|
||||||
|
echo "--- Saved: ----"
|
||||||
|
tree ~/safe
|
||||||
|
}
|
||||||
|
|
||||||
|
function doReset {
|
||||||
|
cd $repoDir
|
||||||
|
git reset 11a05eb9aff104c2384781c740e053907a3849e6 --hard
|
||||||
|
git clean -fd
|
||||||
|
git log -n 1
|
||||||
|
git status
|
||||||
|
}
|
||||||
|
|
||||||
|
function doCommit1 {
|
||||||
|
git mv \
|
||||||
|
${k8sio}/cli-runtime/pkg/kustomize/builder_test.go \
|
||||||
|
${k8sio}/cli-runtime/pkg/resource/kustomizevisitor_test.go
|
||||||
|
|
||||||
|
git rm -r ${k8sio}/cli-runtime/pkg/kustomize
|
||||||
|
git rm ${k8sio}/kubectl/pkg/cmd/kustomize/kustomize_test.go
|
||||||
|
|
||||||
|
git add --all
|
||||||
|
git commit -m "Delete ${k8sio}/cli-runtime/pkg/kustomize"
|
||||||
|
}
|
||||||
|
|
||||||
|
function doCommit2 {
|
||||||
|
getIt ${k8sio}/cli-runtime/pkg/resource builder.go
|
||||||
|
getIt ${k8sio}/cli-runtime/pkg/resource kustomizevisitor.go
|
||||||
|
getIt ${k8sio}/cli-runtime/pkg/resource kustomizevisitor_test.go
|
||||||
|
getIt ${k8sio}/cli-runtime/pkg/resource visitor.go
|
||||||
|
|
||||||
|
getIt ${k8sio}/kubectl/pkg/cmd/kustomize kustomize.go
|
||||||
|
|
||||||
|
(cd ${k8sio}/kubectl; go mod tidy)
|
||||||
|
(cd ${k8sio}/kubectl; go test ./...)
|
||||||
|
|
||||||
|
(cd ${k8sio}/cli-runtime; go mod tidy)
|
||||||
|
(cd ${k8sio}/cli-runtime; go test ./...)
|
||||||
|
|
||||||
|
(cd ${k8sio}/kubectl; go mod tidy)
|
||||||
|
(cd ${k8sio}/cli-runtime; go mod tidy)
|
||||||
|
|
||||||
|
(cd ${k8sio}/kubectl; go mod tidy)
|
||||||
|
|
||||||
|
go mod edit --dropreplace=sigs.k8s.io/kustomize
|
||||||
|
# go mod edit --exclude=sigs.k8s.io/kustomize@v2.0.3+incompatible
|
||||||
|
|
||||||
|
git add --all
|
||||||
|
git commit -m "Manually update kustomize attachment points."
|
||||||
|
}
|
||||||
|
|
||||||
|
function doCommit3 {
|
||||||
|
./hack/update-vendor.sh
|
||||||
|
git add --all
|
||||||
|
git commit -m "Run ./hack/update-vendor.sh"
|
||||||
|
}
|
||||||
|
|
||||||
|
function makePrBranch {
|
||||||
|
doReset
|
||||||
|
doCommit1
|
||||||
|
doCommit2
|
||||||
|
doCommit3
|
||||||
|
}
|
||||||
@@ -19,8 +19,10 @@ echo "Installing kustomize ${version}"
|
|||||||
rm -f $(go env GOPATH)/bin/kustomize
|
rm -f $(go env GOPATH)/bin/kustomize
|
||||||
if [ "$version" == "HEAD" ]; then
|
if [ "$version" == "HEAD" ]; then
|
||||||
(cd kustomize; go install .)
|
(cd kustomize; go install .)
|
||||||
|
elif [ "$version" == "v3.10.0" ]; then
|
||||||
|
GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v3@v3.10.0
|
||||||
else
|
else
|
||||||
GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v3@${version}
|
GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v4@v4.0.0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: change the label?
|
# TODO: change the label?
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
@@ -16,20 +15,20 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Options contain the options for running a build
|
var theArgs struct {
|
||||||
type Options struct {
|
|
||||||
kustomizationPath string
|
kustomizationPath string
|
||||||
outputPath string
|
|
||||||
outOrder reorderOutput
|
|
||||||
fnOptions types.FnPluginLoadingOptions
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewOptions creates a Options object
|
var theFlags struct {
|
||||||
func NewOptions(p, o string) *Options {
|
outputPath string
|
||||||
return &Options{
|
enable struct {
|
||||||
kustomizationPath: p,
|
resourceIdChanges bool
|
||||||
outputPath: o,
|
plugins bool
|
||||||
|
managedByLabel bool
|
||||||
}
|
}
|
||||||
|
loadRestrictor string
|
||||||
|
reorderOutput string
|
||||||
|
fnOptions types.FnPluginLoadingOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
type Help struct {
|
type Help struct {
|
||||||
@@ -39,16 +38,16 @@ type Help struct {
|
|||||||
Example string
|
Example string
|
||||||
}
|
}
|
||||||
|
|
||||||
func MakeHelp(pgmName, cmdName string) Help {
|
func MakeHelp(pgmName, cmdName string) *Help {
|
||||||
fN := konfig.DefaultKustomizationFileName()
|
fN := konfig.DefaultKustomizationFileName()
|
||||||
return Help{
|
return &Help{
|
||||||
Use: cmdName + " <dir>",
|
Use: cmdName + " DIR",
|
||||||
Short: "Build a kustomization target from a directory or URL.",
|
Short: "Build a kustomization target from a directory or URL.",
|
||||||
Long: fmt.Sprintf(`Build a set of KRM resources using a '%s' file.
|
Long: fmt.Sprintf(`Build a set of KRM resources using a '%s' file.
|
||||||
The <dir> argument must be a path to a directory containing
|
The DIR argument must be a path to a directory containing
|
||||||
'%s', or a git repository URL with a path suffix
|
'%s', or a git repository URL with a path suffix
|
||||||
specifying same with respect to the repository root.
|
specifying same with respect to the repository root.
|
||||||
If <dir> is omitted, '.' is assumed.
|
If DIR is omitted, '.' is assumed.
|
||||||
`, fN, fN),
|
`, fN, fN),
|
||||||
Example: fmt.Sprintf(`# Build the current working directory
|
Example: fmt.Sprintf(`# Build the current working directory
|
||||||
%s %s
|
%s %s
|
||||||
@@ -57,15 +56,14 @@ If <dir> is omitted, '.' is assumed.
|
|||||||
%s %s /home/config/production
|
%s %s /home/config/production
|
||||||
|
|
||||||
# Build from github
|
# Build from github
|
||||||
%s %s \
|
%s %s https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6
|
||||||
https://github.com/kubernetes-sigs/kustomize.git/examples/helloWorld?ref=v1.0.6
|
|
||||||
`, pgmName, cmdName, pgmName, cmdName, pgmName, cmdName),
|
`, pgmName, cmdName, pgmName, cmdName, pgmName, cmdName),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCmdBuild creates a new build command.
|
// NewCmdBuild creates a new build command.
|
||||||
func NewCmdBuild(help Help, out io.Writer) *cobra.Command {
|
func NewCmdBuild(
|
||||||
var o Options
|
fSys filesys.FileSystem, help *Help, writer io.Writer) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: help.Use,
|
Use: help.Use,
|
||||||
Short: help.Short,
|
Short: help.Short,
|
||||||
@@ -73,40 +71,36 @@ func NewCmdBuild(help Help, out io.Writer) *cobra.Command {
|
|||||||
Example: help.Example,
|
Example: help.Example,
|
||||||
SilenceUsage: true,
|
SilenceUsage: true,
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
if err := o.Validate(args); err != nil {
|
if err := Validate(args); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
k := krusty.MakeKustomizer(
|
k := krusty.MakeKustomizer(
|
||||||
o.ModifyKrustyOptions(krusty.MakeDefaultOptions()),
|
HonorKustomizeFlags(krusty.MakeDefaultOptions()),
|
||||||
)
|
)
|
||||||
fSys := filesys.MakeFsOnDisk()
|
m, err := k.Run(fSys, theArgs.kustomizationPath)
|
||||||
m, err := k.Run(fSys, o.kustomizationPath)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if o.outputPath != "" && fSys.IsDir(o.outputPath) {
|
if theFlags.outputPath != "" && fSys.IsDir(theFlags.outputPath) {
|
||||||
// Ignore io.Writer; write to o.outputPath directly.
|
// Ignore writer; write to o.outputPath directly.
|
||||||
return MakeWriter(fSys).WriteIndividualFiles(o.outputPath, m)
|
return MakeWriter(fSys).WriteIndividualFiles(
|
||||||
|
theFlags.outputPath, m)
|
||||||
}
|
}
|
||||||
yml, err := m.AsYaml()
|
yml, err := m.AsYaml()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if o.outputPath != "" {
|
if theFlags.outputPath != "" {
|
||||||
// Ignore io.Writer; write to o.outputPath directly.
|
// Ignore writer; write to o.outputPath directly.
|
||||||
return fSys.WriteFile(o.outputPath, yml)
|
return fSys.WriteFile(theFlags.outputPath, yml)
|
||||||
}
|
}
|
||||||
_, err = out.Write(yml)
|
_, err = writer.Write(yml)
|
||||||
return err
|
return err
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.Flags().StringVarP(
|
AddFlagOutputPath(cmd.Flags())
|
||||||
&o.outputPath,
|
AddFunctionFlags(cmd.Flags())
|
||||||
"output", "o", "",
|
|
||||||
"If specified, write output to this path.")
|
|
||||||
|
|
||||||
AddFunctionFlags(cmd.Flags(), &o.fnOptions)
|
|
||||||
AddFlagLoadRestrictor(cmd.Flags())
|
AddFlagLoadRestrictor(cmd.Flags())
|
||||||
AddFlagEnablePlugins(cmd.Flags())
|
AddFlagEnablePlugins(cmd.Flags())
|
||||||
AddFlagReorderOutput(cmd.Flags())
|
AddFlagReorderOutput(cmd.Flags())
|
||||||
@@ -116,40 +110,39 @@ func NewCmdBuild(help Help, out io.Writer) *cobra.Command {
|
|||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate validates build command.
|
// Validate validates build command args and flags.
|
||||||
func (o *Options) Validate(args []string) (err error) {
|
func Validate(args []string) (err error) {
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
return errors.New(
|
return fmt.Errorf(
|
||||||
"specify one path to " +
|
"specify one path to " +
|
||||||
konfig.DefaultKustomizationFileName())
|
konfig.DefaultKustomizationFileName())
|
||||||
}
|
}
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
o.kustomizationPath = filesys.SelfDir
|
theArgs.kustomizationPath = filesys.SelfDir
|
||||||
} else {
|
} else {
|
||||||
o.kustomizationPath = args[0]
|
theArgs.kustomizationPath = args[0]
|
||||||
}
|
}
|
||||||
err = validateFlagLoadRestrictor()
|
err = validateFlagLoadRestrictor()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
o.outOrder, err = validateFlagReorderOutput()
|
return validateFlagReorderOutput()
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ModifyKrustyOptions feeds command line data into the krusty options.
|
// HonorKustomizeFlags feeds command line data to the krusty options.
|
||||||
func (o *Options) ModifyKrustyOptions(kOpts *krusty.Options) *krusty.Options {
|
// Flags and such are held in private package variables.
|
||||||
kOpts.DoLegacyResourceSort = o.outOrder == legacy
|
func HonorKustomizeFlags(kOpts *krusty.Options) *krusty.Options {
|
||||||
|
kOpts.DoLegacyResourceSort = getFlagReorderOutput() == legacy
|
||||||
kOpts.LoadRestrictions = getFlagLoadRestrictorValue()
|
kOpts.LoadRestrictions = getFlagLoadRestrictorValue()
|
||||||
if isFlagEnablePluginsSet() {
|
if theFlags.enable.plugins {
|
||||||
c, err := konfig.EnabledPluginConfig(types.BploUseStaticallyLinked)
|
c, err := konfig.EnabledPluginConfig(types.BploUseStaticallyLinked)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
c.FnpLoadingOptions = o.fnOptions
|
c.FnpLoadingOptions = theFlags.fnOptions
|
||||||
kOpts.PluginConfig = c
|
kOpts.PluginConfig = c
|
||||||
}
|
}
|
||||||
kOpts.AddManagedbyLabel = isManagedbyLabelEnabled()
|
kOpts.AddManagedbyLabel = isManagedByLabelEnabled()
|
||||||
kOpts.UseKyaml = konfig.FlagEnableKyamlDefaultValue
|
kOpts.AllowResourceIdChanges = theFlags.enable.resourceIdChanges
|
||||||
kOpts.AllowResourceIdChanges = flagAllowResourceIdChangesValue
|
|
||||||
return kOpts
|
return kOpts
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,54 +1,250 @@
|
|||||||
// Copyright 2019 The Kubernetes Authors.
|
// Copyright 2019 The Kubernetes Authors.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package build
|
package build_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
|
. "sigs.k8s.io/kustomize/kustomize/v4/commands/build"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewOptionsToSilenceCodeInspectionError(t *testing.T) {
|
func loadFileSystem(fSys filesys.FileSystem) {
|
||||||
if NewOptions("foo", "bar") == nil {
|
fSys.WriteFile(konfig.DefaultKustomizationFileName(), []byte(`
|
||||||
t.Fatal("could not make new options")
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namePrefix: foo-
|
||||||
|
nameSuffix: -bar
|
||||||
|
namespace: ns1
|
||||||
|
commonLabels:
|
||||||
|
app: nginx
|
||||||
|
commonAnnotations:
|
||||||
|
note: This is a test annotation
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- namespace.yaml
|
||||||
|
configMapGenerator:
|
||||||
|
- name: literalConfigMap
|
||||||
|
literals:
|
||||||
|
- DB_USERNAME=admin
|
||||||
|
- DB_PASSWORD=somepw
|
||||||
|
secretGenerator:
|
||||||
|
- name: secret
|
||||||
|
literals:
|
||||||
|
- DB_USERNAME=admin
|
||||||
|
- DB_PASSWORD=somepw
|
||||||
|
type: Opaque
|
||||||
|
patchesJson6902:
|
||||||
|
- target:
|
||||||
|
group: apps
|
||||||
|
version: v1
|
||||||
|
kind: Deployment
|
||||||
|
name: dply1
|
||||||
|
path: jsonpatch.json
|
||||||
|
`))
|
||||||
|
fSys.WriteFile("deployment.yaml", []byte(`
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: dply1
|
||||||
|
kind: Deployment
|
||||||
|
`))
|
||||||
|
fSys.WriteFile("namespace.yaml", []byte(`
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: ns1
|
||||||
|
`))
|
||||||
|
fSys.WriteFile("jsonpatch.json", []byte(`[
|
||||||
|
{"op": "add", "path": "/spec/replica", "value": "3"}
|
||||||
|
]`))
|
||||||
|
}
|
||||||
|
|
||||||
|
const expectedContent = `apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
note: This is a test annotation
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
name: ns1
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
DB_PASSWORD: somepw
|
||||||
|
DB_USERNAME: admin
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
note: This is a test annotation
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
name: foo-literalConfigMap-bar-g5f6t456f5
|
||||||
|
namespace: ns1
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
DB_PASSWORD: c29tZXB3
|
||||||
|
DB_USERNAME: YWRtaW4=
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
note: This is a test annotation
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
name: foo-secret-bar-82c2g5f8f6
|
||||||
|
namespace: ns1
|
||||||
|
type: Opaque
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
note: This is a test annotation
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
name: foo-dply1-bar
|
||||||
|
namespace: ns1
|
||||||
|
spec:
|
||||||
|
replica: "3"
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nginx
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
note: This is a test annotation
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
`
|
||||||
|
|
||||||
|
func TestBuild(t *testing.T) {
|
||||||
|
fSys := filesys.MakeFsInMemory()
|
||||||
|
loadFileSystem(fSys)
|
||||||
|
buffy := new(bytes.Buffer)
|
||||||
|
cmd := NewCmdBuild(fSys, MakeHelp("foo", "bar"), buffy)
|
||||||
|
if err := cmd.RunE(cmd, []string{}); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if buffy.String() != expectedContent {
|
||||||
|
t.Fatalf("Expected output:\n%s\n But got output:\n%s", expectedContent, buffy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBuildValidate(t *testing.T) {
|
func TestBuildWithShardedOutput(t *testing.T) {
|
||||||
var cases = []struct {
|
var err error
|
||||||
name string
|
fSys := filesys.MakeFsInMemory()
|
||||||
|
loadFileSystem(fSys)
|
||||||
|
fSys.Mkdir("someDir")
|
||||||
|
buffy := new(bytes.Buffer)
|
||||||
|
cmd := NewCmdBuild(fSys, MakeHelp("foo", "bar"), buffy)
|
||||||
|
cmd.Flags().Set("output", "someDir")
|
||||||
|
cmd.Flags().Set("enable-managedby-label", "true")
|
||||||
|
if err = cmd.RunE(cmd, []string{}); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
if buffy.String() != "" {
|
||||||
|
t.Fatalf("Expected:\n%s\nBut got:\n%s\n", expectedContent, buffy)
|
||||||
|
}
|
||||||
|
if !fSys.IsDir("someDir") {
|
||||||
|
t.Fatal("expected dir")
|
||||||
|
}
|
||||||
|
var data []byte
|
||||||
|
if data, err = fSys.ReadFile(
|
||||||
|
"someDir/v1_namespace_ns1.yaml"); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
expected := `apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
note: This is a test annotation
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
app.kubernetes.io/managed-by: kustomize-unknown
|
||||||
|
name: ns1
|
||||||
|
`
|
||||||
|
if string(data) != expected {
|
||||||
|
t.Fatalf("Expected:\n%s\nBut got:\n%s\n", expected, string(data))
|
||||||
|
}
|
||||||
|
if data, err = fSys.ReadFile(
|
||||||
|
"someDir/v1_secret_foo-secret-bar-82c2g5f8f6.yaml"); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
expected = `apiVersion: v1
|
||||||
|
data:
|
||||||
|
DB_PASSWORD: c29tZXB3
|
||||||
|
DB_USERNAME: YWRtaW4=
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
note: This is a test annotation
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
app.kubernetes.io/managed-by: kustomize-unknown
|
||||||
|
name: foo-secret-bar-82c2g5f8f6
|
||||||
|
namespace: ns1
|
||||||
|
type: Opaque
|
||||||
|
`
|
||||||
|
if string(data) != expected {
|
||||||
|
t.Fatalf("Expected:\n%s\nBut got:\n%s\n", expected, string(data))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestHelp(t *testing.T) {
|
||||||
|
fSys := filesys.MakeFsInMemory()
|
||||||
|
buffy := new(bytes.Buffer)
|
||||||
|
cmd := NewCmdBuild(fSys, MakeHelp("foo", "bar"), buffy)
|
||||||
|
if cmd.Use != "bar DIR" {
|
||||||
|
t.Fatalf("Unexpected usage: %s\n", cmd.Use)
|
||||||
|
}
|
||||||
|
if cmd.Short != "Build a kustomization target from a directory or URL." {
|
||||||
|
t.Fatalf("Unexpected short help: %s\n", cmd.Short)
|
||||||
|
}
|
||||||
|
if !strings.Contains(cmd.Long, "If DIR is omitted, '.' is assumed.") {
|
||||||
|
t.Fatalf("Unexpected long help: %s\n", cmd.Long)
|
||||||
|
}
|
||||||
|
if !strings.Contains(cmd.Example, "foo bar /home/config/production") {
|
||||||
|
t.Fatalf("Unexpected example: %s\n", cmd.Example)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestValidation(t *testing.T) {
|
||||||
|
var cases = map[string]struct {
|
||||||
args []string
|
args []string
|
||||||
path string
|
|
||||||
erMsg string
|
erMsg string
|
||||||
}{
|
}{
|
||||||
{"noargs", []string{}, filesys.SelfDir, ""},
|
"noArgs": {[]string{}, "unable to find one of "},
|
||||||
{"file", []string{"beans"}, "beans", ""},
|
"dotArg": {[]string{"."}, "unable to find one of "},
|
||||||
{"path", []string{"a/b/c"}, "a/b/c", ""},
|
"file": {[]string{"beans"}, "'beans' doesn't exist"},
|
||||||
{"path", []string{"too", "many"},
|
"directory": {[]string{"a/b/c"}, "'a/b/c' doesn't exist"},
|
||||||
"",
|
"tooManyArgs": {[]string{"too", "many"},
|
||||||
"specify one path to " +
|
"specify one path to " +
|
||||||
konfig.DefaultKustomizationFileName()},
|
konfig.DefaultKustomizationFileName()},
|
||||||
}
|
}
|
||||||
for _, mycase := range cases {
|
for n := range cases {
|
||||||
opts := Options{}
|
tc := cases[n]
|
||||||
e := opts.Validate(mycase.args)
|
t.Run(n, func(t *testing.T) {
|
||||||
if len(mycase.erMsg) > 0 {
|
fSys := filesys.MakeFsInMemory()
|
||||||
if e == nil {
|
buffy := new(bytes.Buffer)
|
||||||
t.Errorf("%s: Expected an error %v", mycase.name, mycase.erMsg)
|
cmd := NewCmdBuild(fSys, MakeHelp("foo", "bar"), buffy)
|
||||||
|
err := cmd.RunE(cmd, tc.args)
|
||||||
|
if len(tc.erMsg) > 0 {
|
||||||
|
if err == nil {
|
||||||
|
t.Errorf("%s: Expected an error %v", n, tc.erMsg)
|
||||||
|
}
|
||||||
|
if !strings.Contains(err.Error(), tc.erMsg) {
|
||||||
|
t.Errorf("%s: Expected error %s, but got %v",
|
||||||
|
n, tc.erMsg, err)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if err != nil {
|
||||||
|
t.Errorf("%s: unknown error: %v", n, err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if e.Error() != mycase.erMsg {
|
})
|
||||||
t.Errorf("%s: Expected error %s, but got %v", mycase.name, mycase.erMsg, e)
|
|
||||||
}
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if e != nil {
|
|
||||||
t.Errorf("%s: unknown error: %v", mycase.name, e)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if opts.kustomizationPath != mycase.path {
|
|
||||||
t.Errorf("%s: expected path '%s', got '%s'", mycase.name, mycase.path, opts.kustomizationPath)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,28 +10,18 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
flagEnableManagedbyLabelName = "enable_managedby_label"
|
|
||||||
flagEnableManagedbyLabelHelp = `enable adding ` + konfig.ManagedbyLabelKey
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
flagEnableManagedbyLabelValue = false
|
|
||||||
)
|
|
||||||
|
|
||||||
func AddFlagEnableManagedbyLabel(set *pflag.FlagSet) {
|
func AddFlagEnableManagedbyLabel(set *pflag.FlagSet) {
|
||||||
set.BoolVar(
|
set.BoolVar(
|
||||||
&flagEnableManagedbyLabelValue, flagEnableManagedbyLabelName,
|
&theFlags.enable.managedByLabel,
|
||||||
false, flagEnableManagedbyLabelHelp)
|
"enable-managedby-label",
|
||||||
|
false,
|
||||||
|
`enable adding `+konfig.ManagedbyLabelKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
func isManagedbyLabelEnabled() bool {
|
func isManagedByLabelEnabled() bool {
|
||||||
if flagEnableManagedbyLabelValue {
|
if theFlags.enable.managedByLabel {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
enableLabel, isSet := os.LookupEnv(konfig.EnableManagedbyLabelEnv)
|
enableLabel, isSet := os.LookupEnv(konfig.EnableManagedbyLabelEnv)
|
||||||
if isSet && enableLabel == "on" {
|
return isSet && enableLabel == "on"
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,17 +7,10 @@ import (
|
|||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
flagAllowResourceIdChangesName = "allow_id_changes"
|
|
||||||
flagAllowResourceIdChangesHelp = `enable changes to a resourceId`
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
flagAllowResourceIdChangesValue = false
|
|
||||||
)
|
|
||||||
|
|
||||||
func AddFlagAllowResourceIdChanges(set *pflag.FlagSet) {
|
func AddFlagAllowResourceIdChanges(set *pflag.FlagSet) {
|
||||||
set.BoolVar(
|
set.BoolVar(
|
||||||
&flagAllowResourceIdChangesValue, flagAllowResourceIdChangesName,
|
&theFlags.enable.resourceIdChanges,
|
||||||
false, flagAllowResourceIdChangesHelp)
|
"allow-id-changes",
|
||||||
|
false,
|
||||||
|
`enable changes to a resourceId`)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,23 +7,10 @@ import (
|
|||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
flagEnablePluginsName = "enable_alpha_plugins"
|
|
||||||
flagEnablePluginsHelp = `enable plugins, an alpha feature.
|
|
||||||
See https://github.com/kubernetes-sigs/kustomize/blob/master/docs/plugins/README.md
|
|
||||||
`
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
flagPluginsEnabledValue = false
|
|
||||||
)
|
|
||||||
|
|
||||||
func AddFlagEnablePlugins(set *pflag.FlagSet) {
|
func AddFlagEnablePlugins(set *pflag.FlagSet) {
|
||||||
set.BoolVar(
|
set.BoolVar(
|
||||||
&flagPluginsEnabledValue, flagEnablePluginsName,
|
&theFlags.enable.plugins,
|
||||||
false, flagEnablePluginsHelp)
|
"enable-alpha-plugins",
|
||||||
}
|
false,
|
||||||
|
"enable kustomize plugins")
|
||||||
func isFlagEnablePluginsSet() bool {
|
|
||||||
return flagPluginsEnabledValue
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,42 +10,38 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const flagLoadRestrictorName = "load-restrictor"
|
||||||
flagName = "load_restrictor"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
flagLrValue = types.LoadRestrictionsRootOnly.String()
|
|
||||||
flagLrHelp = "if set to '" + types.LoadRestrictionsNone.String() +
|
|
||||||
"', local kustomizations may load files from outside their root. " +
|
|
||||||
"This does, however, break the relocatability of the kustomization."
|
|
||||||
)
|
|
||||||
|
|
||||||
func AddFlagLoadRestrictor(set *pflag.FlagSet) {
|
func AddFlagLoadRestrictor(set *pflag.FlagSet) {
|
||||||
set.StringVar(
|
set.StringVar(
|
||||||
&flagLrValue, flagName,
|
&theFlags.loadRestrictor,
|
||||||
types.LoadRestrictionsRootOnly.String(), flagLrHelp)
|
flagLoadRestrictorName,
|
||||||
|
types.LoadRestrictionsRootOnly.String(),
|
||||||
|
"if set to '"+types.LoadRestrictionsNone.String()+
|
||||||
|
"', local kustomizations may load files from outside their root. "+
|
||||||
|
"This does, however, break the "+
|
||||||
|
"relocatability of the kustomization.")
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateFlagLoadRestrictor() error {
|
func validateFlagLoadRestrictor() error {
|
||||||
switch getFlagLoadRestrictorValue() {
|
switch theFlags.loadRestrictor {
|
||||||
case types.LoadRestrictionsRootOnly, types.LoadRestrictionsNone:
|
case types.LoadRestrictionsRootOnly.String(),
|
||||||
|
types.LoadRestrictionsNone.String(), "":
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"illegal flag value --%s %s; legal values: %v",
|
"illegal flag value --%s %s; legal values: %v",
|
||||||
flagName, flagLrValue,
|
flagLoadRestrictorName, theFlags.loadRestrictor,
|
||||||
[]string{types.LoadRestrictionsRootOnly.String(), types.LoadRestrictionsNone.String()})
|
[]string{types.LoadRestrictionsRootOnly.String(),
|
||||||
|
types.LoadRestrictionsNone.String()})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func getFlagLoadRestrictorValue() types.LoadRestrictions {
|
func getFlagLoadRestrictorValue() types.LoadRestrictions {
|
||||||
switch flagLrValue {
|
switch theFlags.loadRestrictor {
|
||||||
case types.LoadRestrictionsRootOnly.String(), "rootOnly":
|
|
||||||
return types.LoadRestrictionsRootOnly
|
|
||||||
case types.LoadRestrictionsNone.String(), "none":
|
case types.LoadRestrictionsNone.String(), "none":
|
||||||
return types.LoadRestrictionsNone
|
return types.LoadRestrictionsNone
|
||||||
default:
|
default:
|
||||||
return types.LoadRestrictionsUnknown
|
return types.LoadRestrictionsRootOnly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
17
kustomize/commands/build/flagoutputpath.go
Normal file
17
kustomize/commands/build/flagoutputpath.go
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
// Copyright 2021 The Kubernetes Authors.
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
package build
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/spf13/pflag"
|
||||||
|
)
|
||||||
|
|
||||||
|
func AddFlagOutputPath(set *pflag.FlagSet) {
|
||||||
|
set.StringVarP(
|
||||||
|
&theFlags.outputPath,
|
||||||
|
"output",
|
||||||
|
"o", // abbreviation
|
||||||
|
"", // default
|
||||||
|
"If specified, write output to this path.")
|
||||||
|
}
|
||||||
@@ -5,26 +5,25 @@ package build
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func AddFunctionFlags(set *pflag.FlagSet, o *types.FnPluginLoadingOptions) {
|
func AddFunctionFlags(set *pflag.FlagSet) {
|
||||||
set.BoolVar(
|
set.BoolVar(
|
||||||
&o.EnableExec, "enable-exec", false, /*do not change!*/
|
&theFlags.fnOptions.EnableExec, "enable-exec", false, /*do not change!*/
|
||||||
"enable support for exec functions -- note: exec functions run arbitrary code -- do not use for untrusted configs!!! (Alpha)")
|
"enable support for exec functions -- note: exec functions run arbitrary code -- do not use for untrusted configs!!! (Alpha)")
|
||||||
set.BoolVar(
|
set.BoolVar(
|
||||||
&o.EnableStar, "enable-star", false,
|
&theFlags.fnOptions.EnableStar, "enable-star", false,
|
||||||
"enable support for starlark functions. (Alpha)")
|
"enable support for starlark functions. (Alpha)")
|
||||||
set.BoolVar(
|
set.BoolVar(
|
||||||
&o.Network, "network", false,
|
&theFlags.fnOptions.Network, "network", false,
|
||||||
"enable network access for functions that declare it")
|
"enable network access for functions that declare it")
|
||||||
set.StringVar(
|
set.StringVar(
|
||||||
&o.NetworkName, "network-name", "bridge",
|
&theFlags.fnOptions.NetworkName, "network-name", "bridge",
|
||||||
"the docker network to run the container in")
|
"the docker network to run the container in")
|
||||||
set.StringArrayVar(
|
set.StringArrayVar(
|
||||||
&o.Mounts, "mount", []string{},
|
&theFlags.fnOptions.Mounts, "mount", []string{},
|
||||||
"a list of storage options read from the filesystem")
|
"a list of storage options read from the filesystem")
|
||||||
set.StringArrayVarP(
|
set.StringArrayVarP(
|
||||||
&o.Env, "env", "e", []string{},
|
&theFlags.fnOptions.Env, "env", "e", []string{},
|
||||||
"a list of environment variables to be used by functions")
|
"a list of environment variables to be used by functions")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,33 +18,37 @@ const (
|
|||||||
legacy
|
legacy
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const flagReorderOutputName = "reorder"
|
||||||
flagReorderOutputName = "reorder"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
flagReorderOutputValue = legacy.String()
|
|
||||||
flagReorderOutputHelp = "Reorder the resources just before output. " +
|
|
||||||
"Use '" + legacy.String() + "' to apply a legacy reordering (Namespaces first, Webhooks last, etc). " +
|
|
||||||
"Use '" + none.String() + "' to suppress a final reordering."
|
|
||||||
)
|
|
||||||
|
|
||||||
func AddFlagReorderOutput(set *pflag.FlagSet) {
|
func AddFlagReorderOutput(set *pflag.FlagSet) {
|
||||||
set.StringVar(
|
set.StringVar(
|
||||||
&flagReorderOutputValue, flagReorderOutputName,
|
&theFlags.reorderOutput, flagReorderOutputName,
|
||||||
legacy.String(), flagReorderOutputHelp)
|
legacy.String(),
|
||||||
|
"Reorder the resources just before output. "+
|
||||||
|
"Use '"+legacy.String()+"' to apply a legacy reordering "+
|
||||||
|
"(Namespaces first, Webhooks last, etc). "+
|
||||||
|
"Use '"+none.String()+"' to suppress a final reordering.")
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateFlagReorderOutput() (reorderOutput, error) {
|
func validateFlagReorderOutput() error {
|
||||||
switch flagReorderOutputValue {
|
switch theFlags.reorderOutput {
|
||||||
case none.String():
|
case none.String(), legacy.String():
|
||||||
return none, nil
|
return nil
|
||||||
case legacy.String():
|
|
||||||
return legacy, nil
|
|
||||||
default:
|
default:
|
||||||
return unspecified, fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"illegal flag value --%s %s; legal values: %v",
|
"illegal flag value --%s %s; legal values: %v",
|
||||||
flagReorderOutputName, flagReorderOutputValue,
|
flagReorderOutputName, theFlags.reorderOutput,
|
||||||
[]string{legacy.String(), none.String()})
|
[]string{legacy.String(), none.String()})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getFlagReorderOutput() reorderOutput {
|
||||||
|
switch theFlags.reorderOutput {
|
||||||
|
case none.String():
|
||||||
|
return none
|
||||||
|
case legacy.String():
|
||||||
|
return legacy
|
||||||
|
default:
|
||||||
|
return unspecified
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/provider"
|
"sigs.k8s.io/kustomize/api/provider"
|
||||||
"sigs.k8s.io/kustomize/cmd/config/completion"
|
"sigs.k8s.io/kustomize/cmd/config/completion"
|
||||||
"sigs.k8s.io/kustomize/cmd/config/configcobra"
|
"sigs.k8s.io/kustomize/cmd/config/configcobra"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/build"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/build"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/create"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/create"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/edit"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/edit"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/openapi"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/openapi"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/version"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewDefaultCommand returns the default (aka root) command for kustomize command.
|
// NewDefaultCommand returns the default (aka root) command for kustomize command.
|
||||||
@@ -38,7 +38,7 @@ See https://sigs.k8s.io/kustomize
|
|||||||
c.AddCommand(
|
c.AddCommand(
|
||||||
completion.NewCommand(),
|
completion.NewCommand(),
|
||||||
build.NewCmdBuild(
|
build.NewCmdBuild(
|
||||||
build.MakeHelp(konfig.ProgramName, "build"), stdOut),
|
fSys, build.MakeHelp(konfig.ProgramName, "build"), stdOut),
|
||||||
edit.NewCmdEdit(
|
edit.NewCmdEdit(
|
||||||
fSys, pvd.GetFieldValidator(), pvd.GetKunstructuredFactory()),
|
fSys, pvd.GetFieldValidator(), pvd.GetKunstructuredFactory()),
|
||||||
create.NewCmdCreate(fSys, pvd.GetKunstructuredFactory()),
|
create.NewCmdCreate(fSys, pvd.GetKunstructuredFactory()),
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/ifc"
|
"sigs.k8s.io/kustomize/api/ifc"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
"sigs.k8s.io/kustomize/api/loader"
|
"sigs.k8s.io/kustomize/api/loader"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/util"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type createFlags struct {
|
type createFlags struct {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/provider"
|
"sigs.k8s.io/kustomize/api/provider"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
var factory = provider.NewDefaultDepProvider().GetKunstructuredFactory()
|
var factory = provider.NewDefaultDepProvider().GetKunstructuredFactory()
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type addBaseOptions struct {
|
type addBaseOptions struct {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/loader"
|
"sigs.k8s.io/kustomize/api/loader"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/util"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type addComponentOptions struct {
|
type addComponentOptions struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/util"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// kindOfAdd is the kind of metadata being added: label or annotation
|
// kindOfAdd is the kind of metadata being added: label or annotation
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
valtest_test "sigs.k8s.io/kustomize/api/testutils/valtest"
|
valtest_test "sigs.k8s.io/kustomize/api/testutils/valtest"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func makeKustomization(t *testing.T) *types.Kustomization {
|
func makeKustomization(t *testing.T) *types.Kustomization {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type addPatchOptions struct {
|
type addPatchOptions struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/loader"
|
"sigs.k8s.io/kustomize/api/loader"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/util"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type addResourceOptions struct {
|
type addResourceOptions struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/util"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type addTransformerOptions struct {
|
type addTransformerOptions struct {
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/ifc"
|
"sigs.k8s.io/kustomize/api/ifc"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
// newCmdAddConfigMap returns a new command.
|
// newCmdAddConfigMap returns a new command.
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/util"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// flagsAndArgs encapsulates the options for add secret/configmap commands.
|
// flagsAndArgs encapsulates the options for add secret/configmap commands.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/ifc"
|
"sigs.k8s.io/kustomize/api/ifc"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
// newCmdAddSecret returns a new command.
|
// newCmdAddSecret returns a new command.
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/ifc"
|
"sigs.k8s.io/kustomize/api/ifc"
|
||||||
"sigs.k8s.io/kustomize/api/kv"
|
"sigs.k8s.io/kustomize/api/kv"
|
||||||
"sigs.k8s.io/kustomize/api/loader"
|
"sigs.k8s.io/kustomize/api/loader"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/edit/add"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/edit/add"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/edit/fix"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/edit/fix"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/edit/listbuiltin"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/edit/listbuiltin"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/edit/remove"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/edit/remove"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/edit/set"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/edit/set"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewCmdEdit returns an instance of 'edit' subcommand.
|
// NewCmdEdit returns an instance of 'edit' subcommand.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package fix
|
|||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewCmdFix returns an instance of 'fix' subcommand.
|
// NewCmdFix returns an instance of 'fix' subcommand.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFix(t *testing.T) {
|
func TestFix(t *testing.T) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
// kindOfAdd is the kind of metadata being added: label or annotation
|
// kindOfAdd is the kind of metadata being added: label or annotation
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
valtest_test "sigs.k8s.io/kustomize/api/testutils/valtest"
|
valtest_test "sigs.k8s.io/kustomize/api/testutils/valtest"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func makeKustomizationFS() filesys.FileSystem {
|
func makeKustomizationFS() filesys.FileSystem {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type removePatchOptions struct {
|
type removePatchOptions struct {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type removeResourceOptions struct {
|
type removeResourceOptions struct {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/edit/remove_test"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/edit/remove_test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRemoveResources(t *testing.T) {
|
func TestRemoveResources(t *testing.T) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type removeTransformerOptions struct {
|
type removeTransformerOptions struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/edit/remove_test"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/edit/remove_test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRemoveTransformer(t *testing.T) {
|
func TestRemoveTransformer(t *testing.T) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Given represents the provided inputs for the test case.
|
// Given represents the provided inputs for the test case.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type setNamePrefixOptions struct {
|
type setNamePrefixOptions struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type setNameSuffixOptions struct {
|
type setNameSuffixOptions struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type setImageOptions struct {
|
type setImageOptions struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSetImage(t *testing.T) {
|
func TestSetImage(t *testing.T) {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/util"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type setLabelOptions struct {
|
type setLabelOptions struct {
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
valtest_test "sigs.k8s.io/kustomize/api/testutils/valtest"
|
valtest_test "sigs.k8s.io/kustomize/api/testutils/valtest"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func makeKustomization(t *testing.T) *types.Kustomization {
|
func makeKustomization(t *testing.T) *types.Kustomization {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/ifc"
|
"sigs.k8s.io/kustomize/api/ifc"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type setNamespaceOptions struct {
|
type setNamespaceOptions struct {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
valtest_test "sigs.k8s.io/kustomize/api/testutils/valtest"
|
valtest_test "sigs.k8s.io/kustomize/api/testutils/valtest"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/internal/kustfile"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/internal/kustfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
type setReplicasOptions struct {
|
type setReplicasOptions struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSetReplicas(t *testing.T) {
|
func TestSetReplicas(t *testing.T) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"sigs.k8s.io/kustomize/api/filesys"
|
"sigs.k8s.io/kustomize/api/filesys"
|
||||||
"sigs.k8s.io/kustomize/api/konfig"
|
"sigs.k8s.io/kustomize/api/konfig"
|
||||||
"sigs.k8s.io/kustomize/api/types"
|
"sigs.k8s.io/kustomize/api/types"
|
||||||
testutils_test "sigs.k8s.io/kustomize/kustomize/v3/commands/internal/testutils"
|
testutils_test "sigs.k8s.io/kustomize/kustomize/v4/commands/internal/testutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFieldOrder(t *testing.T) {
|
func TestFieldOrder(t *testing.T) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"sigs.k8s.io/kustomize/cmd/config/configcobra"
|
"sigs.k8s.io/kustomize/cmd/config/configcobra"
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands/openapi/info"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands/openapi/info"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewCmdOpenAPI makes a new openapi command.
|
// NewCmdOpenAPI makes a new openapi command.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module sigs.k8s.io/kustomize/kustomize/v3
|
module sigs.k8s.io/kustomize/kustomize/v4
|
||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ require (
|
|||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
github.com/spf13/cobra v1.0.0
|
github.com/spf13/cobra v1.0.0
|
||||||
github.com/spf13/pflag v1.0.5
|
github.com/spf13/pflag v1.0.5
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/kustomize/cmd/config v0.9.2
|
sigs.k8s.io/kustomize/cmd/config v0.9.2
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10
|
sigs.k8s.io/kustomize/kyaml v0.10.10
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
@@ -17,5 +17,3 @@ exclude (
|
|||||||
sigs.k8s.io/kustomize/api v0.2.0
|
sigs.k8s.io/kustomize/api v0.2.0
|
||||||
sigs.k8s.io/kustomize/cmd/config v0.2.0
|
sigs.k8s.io/kustomize/cmd/config v0.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../api
|
|
||||||
|
|||||||
@@ -426,6 +426,8 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt
|
|||||||
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
||||||
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
||||||
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
||||||
|
sigs.k8s.io/kustomize/api v0.8.1 h1:7HNZ82JKD45Hnl3jLi4DR9+LbWbN0OdyeOnSGqbZ8wQ=
|
||||||
|
sigs.k8s.io/kustomize/api v0.8.1/go.mod h1:M0HMIEWuO4nBaZ3WhRe4tHKTVCqCqYkqhrRpZ0B/ElA=
|
||||||
sigs.k8s.io/kustomize/cmd/config v0.9.2 h1:5sRJAB9dDZZZ+tnL4kTmoeCz8kd8E8mXJ7KgRqjgSPo=
|
sigs.k8s.io/kustomize/cmd/config v0.9.2 h1:5sRJAB9dDZZZ+tnL4kTmoeCz8kd8E8mXJ7KgRqjgSPo=
|
||||||
sigs.k8s.io/kustomize/cmd/config v0.9.2/go.mod h1:8p6Hqj7w1v4ABfRJlm/HYAfznIWPxPikigIpANXG8LA=
|
sigs.k8s.io/kustomize/cmd/config v0.9.2/go.mod h1:8p6Hqj7w1v4ABfRJlm/HYAfznIWPxPikigIpANXG8LA=
|
||||||
sigs.k8s.io/kustomize/kyaml v0.10.10 h1:caAxDDkaXZp+0kDsZVik4leFJV8LCy09PdVqpaoNeF4=
|
sigs.k8s.io/kustomize/kyaml v0.10.10 h1:caAxDDkaXZp+0kDsZVik4leFJV8LCy09PdVqpaoNeF4=
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"sigs.k8s.io/kustomize/kustomize/v3/commands"
|
"sigs.k8s.io/kustomize/kustomize/v4/commands"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/builtin/annotationstransformer
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/builtin/configmapgenerator
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ module sigs.k8s.io/kustomize/plugin/builtin/hashtransformer
|
|||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.8.0
|
require sigs.k8s.io/kustomize/api v0.8.1
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ go 1.15
|
|||||||
require (
|
require (
|
||||||
github.com/imdario/mergo v0.3.5
|
github.com/imdario/mergo v0.3.5
|
||||||
github.com/pkg/errors v0.8.1
|
github.com/pkg/errors v0.8.1
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/builtin/imagetagtransformer
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/builtin/labeltransformer
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ go 1.15
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/pkg/errors v0.8.1
|
github.com/pkg/errors v0.8.1
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/builtin/namespacetransformer
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ go 1.15
|
|||||||
require (
|
require (
|
||||||
github.com/evanphx/json-patch v4.5.0+incompatible
|
github.com/evanphx/json-patch v4.5.0+incompatible
|
||||||
github.com/pkg/errors v0.8.1
|
github.com/pkg/errors v0.8.1
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ go 1.15
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ go 1.15
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/evanphx/json-patch v4.5.0+incompatible
|
github.com/evanphx/json-patch v4.5.0+incompatible
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/builtin/prefixsuffixtransformer
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/builtin/replicacounttransformer
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/builtin/secretgenerator
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/builtin/valueaddtransformer
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../api
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/bashedconfigmap
|
|||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.8.0
|
require sigs.k8s.io/kustomize/api v0.8.1
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/calvinduplicator
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ go 1.15
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/pkg/errors v0.8.1
|
github.com/pkg/errors v0.8.1
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/printpluginenv
|
|||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.8.0
|
require sigs.k8s.io/kustomize/api v0.8.1
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/secretsfromdatabase
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/sedtransformer
|
|||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.8.0
|
require sigs.k8s.io/kustomize/api v0.8.1
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/someservicegenerator
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/starlarkmixer
|
|||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.8.0
|
require sigs.k8s.io/kustomize/api v0.8.1
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ go 1.15
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/pkg/errors v0.8.1
|
github.com/pkg/errors v0.8.1
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ module sigs.k8s.io/kustomize/plugin/someteam.example.com/v1/validator
|
|||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.8.0
|
require sigs.k8s.io/kustomize/api v0.8.1
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ module sigs.k8s.io/kustomize/plugin/untested/v1/gogetter
|
|||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require sigs.k8s.io/kustomize/api v0.8.0
|
require sigs.k8s.io/kustomize/api v0.8.1
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module sigs.k8s.io/kustomize/plugin/untested/v1/replacementtransformer
|
|||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require (
|
require (
|
||||||
sigs.k8s.io/kustomize/api v0.8.0
|
sigs.k8s.io/kustomize/api v0.8.1
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/api => ../../../../api
|
|
||||||
|
|
||||||
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
replace sigs.k8s.io/kustomize/kyaml => ../../../../kyaml
|
||||||
|
|
||||||
|
replace sigs.k8s.io/kustomize/api => ../../../../api
|
||||||
|
|||||||
Reference in New Issue
Block a user