mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
@@ -6,7 +6,7 @@ require (
|
||||
github.com/pkg/errors v0.8.1
|
||||
github.com/spf13/cobra v0.0.5
|
||||
github.com/spf13/pflag v1.0.5
|
||||
sigs.k8s.io/kustomize/api v0.3.0
|
||||
sigs.k8s.io/kustomize/api v0.3.1
|
||||
sigs.k8s.io/kustomize/cmd/config v0.0.2
|
||||
sigs.k8s.io/kustomize/cmd/kubectl v0.0.2
|
||||
sigs.k8s.io/kustomize/kyaml v0.0.2
|
||||
|
||||
@@ -596,6 +596,7 @@ sigs.k8s.io/kustomize v2.0.3+incompatible h1:JUufWFNlI44MdtnjUqVnvh29rR37PQFzPbL
|
||||
sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU=
|
||||
sigs.k8s.io/kustomize/api v0.3.0 h1:e7Erw2n8lT8+IWUukktozF0bgWwH2fFC+qsXP0gabg0=
|
||||
sigs.k8s.io/kustomize/api v0.3.0/go.mod h1:4jaPCtRzxfQLFdYq4gYo40dBGW1hyPp/f4AuiZB5dAQ=
|
||||
sigs.k8s.io/kustomize/api v0.3.1/go.mod h1:A+ATnlHqzictQfQC1q3KB/T6MSr0UWQsrrLxMWkge2E=
|
||||
sigs.k8s.io/kustomize/cmd/config v0.0.2 h1:FphfIoGJ0jGGJJXq9WoG5sqqEIuTeDGx58E5NWHV8Hc=
|
||||
sigs.k8s.io/kustomize/cmd/config v0.0.2/go.mod h1:c6IBoPpAAm5a2aD+0iH8IfeyCF5GPsY5Ws57Dwpcvg0=
|
||||
sigs.k8s.io/kustomize/cmd/kubectl v0.0.2 h1:MxUAU5ie0tqx2MuDrUlcAL+Mgt8LVFcXc2scinSD8/w=
|
||||
|
||||
@@ -11,7 +11,7 @@ export kyaml_patch=2
|
||||
# kustomize api version
|
||||
export api_major=0
|
||||
export api_minor=3
|
||||
export api_patch=0
|
||||
export api_patch=1
|
||||
|
||||
# cmd/config version
|
||||
export cmd_config_major=0
|
||||
@@ -26,7 +26,7 @@ export cmd_kubectl_patch=2
|
||||
# kustomize version
|
||||
export kustomize_major=3
|
||||
export kustomize_minor=5
|
||||
export kustomize_patch=1
|
||||
export kustomize_patch=3
|
||||
|
||||
export pluginator_major=2
|
||||
export pluginator_minor=1
|
||||
|
||||
@@ -63,24 +63,10 @@ function releaseModule {
|
||||
rm -rf $wktree
|
||||
git worktree prune
|
||||
git branch -D $branch
|
||||
|
||||
echo "$module complete"
|
||||
}
|
||||
|
||||
function releaseBinary {
|
||||
# move the latest tag for the binary to trigger cloudbuild
|
||||
binary=$1
|
||||
echo "binary: $binary"
|
||||
|
||||
if [ "$NO_DRY_RUN" == "true" ]; then
|
||||
git tag -d latest_$binary
|
||||
git push upstream :latest_$binary
|
||||
git tag -a latest_$binary
|
||||
git push upstream latest_$binary
|
||||
else
|
||||
echo "Skipping push binary $binary -- run with NO_DRY_RUN=true to push the release."
|
||||
fi
|
||||
}
|
||||
|
||||
modules="kyaml api cmd/config cmd/kubectl pluginator kustomize"
|
||||
|
||||
# configure the branch and tag names
|
||||
@@ -112,7 +98,11 @@ fi
|
||||
# release the module
|
||||
releaseModule $module
|
||||
|
||||
# release the kustomize binary if the module is kustomize
|
||||
if [ "$module" == "kustomize" ]; then
|
||||
releaseBinary $module
|
||||
# TODO: Do this for all modules
|
||||
pushd .
|
||||
getter=$(mktemp -d /tmp/kustomize-releases-XXXXXX)
|
||||
cd $getter
|
||||
go get sigs.k8s.io/kustomize/$module/v3
|
||||
popd
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user