From c66dd497c3ac737665d9a324debc64178b51858c Mon Sep 17 00:00:00 2001 From: Phillip Wittrock Date: Tue, 17 Dec 2019 14:01:00 -0800 Subject: [PATCH] Update api to 0.3.1 --- kustomize/go.mod | 2 +- kustomize/go.sum | 1 + releasing/VERSIONS | 4 ++-- releasing/releasemodule.sh | 24 +++++++----------------- 4 files changed, 11 insertions(+), 20 deletions(-) diff --git a/kustomize/go.mod b/kustomize/go.mod index da1af47ab..3ff28c01a 100644 --- a/kustomize/go.mod +++ b/kustomize/go.mod @@ -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 diff --git a/kustomize/go.sum b/kustomize/go.sum index f542a9868..79a60710e 100644 --- a/kustomize/go.sum +++ b/kustomize/go.sum @@ -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= diff --git a/releasing/VERSIONS b/releasing/VERSIONS index 7ec4de9e6..35521dd0c 100644 --- a/releasing/VERSIONS +++ b/releasing/VERSIONS @@ -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 diff --git a/releasing/releasemodule.sh b/releasing/releasemodule.sh index cde4b7a33..888c18b8c 100755 --- a/releasing/releasemodule.sh +++ b/releasing/releasemodule.sh @@ -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