mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Update api to 0.3.1
This commit is contained in:
@@ -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