Update api to 0.3.1

This commit is contained in:
Phillip Wittrock
2019-12-17 14:01:00 -08:00
parent 3dd3654792
commit c66dd497c3
4 changed files with 11 additions and 20 deletions

View File

@@ -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

View File

@@ -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