From 87b6a4d6bc670b426b69442890ef0ad1ae565339 Mon Sep 17 00:00:00 2001 From: Jeff Regan Date: Mon, 11 Nov 2019 11:10:01 -0800 Subject: [PATCH] Set up for pseudok8s release. --- releasing/README.md | 13 +++++++------ releasing/cloudbuild_pseudok8s.yaml | 2 +- releasing/localbuild.sh | 7 +++++-- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/releasing/README.md b/releasing/README.md index 85c51b364..58fc86218 100644 --- a/releasing/README.md +++ b/releasing/README.md @@ -20,6 +20,7 @@ for an explanation of the `foo/v2.3.0` tags applied below. [`sigs.k8s.io/kustomize/kustomize`]: #sigsk8siokustomizekustomize [`sigs.k8s.io/kustomize/api`]: #sigsk8siokustomizeapi [`sigs.k8s.io/kustomize/pluginator`]: #sigsk8siokustomizepluginator +[`sigs.k8s.io/kustomize/pseudo/k8s`]: #sigsk8siokustomizepseudok8s [kustomize/v3.2.1]: https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv3.2.1 [pluginator/v1.0.0]: https://github.com/kubernetes-sigs/kustomize/releases/tag/pluginator%2Fv1.0.0 @@ -28,8 +29,7 @@ for an explanation of the `foo/v2.3.0` tags applied below. | kustomize executable | [`sigs.k8s.io/kustomize/kustomize`] | _kustomize/v3.2.2_ | _release-kustomize-v3.2.2_ | | kustomize Go API | [`sigs.k8s.io/kustomize/api`] | _api/v0.1.0_ | _release-api-v0.1_ | | pluginator executable | [`sigs.k8s.io/kustomize/pluginator`] | _pluginator/v1.0.0_ | _release-pluginator-v1.0_ | -| pseudo ks8 | [`sigs.k8s.io/kustomize/pseudo/k8s`] | _pseudok8s/v0.1.0_ | _release-pseudok8s-v0.1.0_ | - +| pseudo k8s API | [`sigs.k8s.io/kustomize/pseudo/k8s`] | _pseudo/k8s/v0.1.0_ | _release-pseudok8s-v0.1.0_ | ### sigs.k8s.io/kustomize/kustomize @@ -63,7 +63,6 @@ This is the kustomize Go API. The packages in this module are used by API clients, like the `kustomize` program itself, and programs in other repositories, e.g. `kubectl`. - They include methods to read, edit and emit modified YAML. @@ -124,7 +123,8 @@ See the [README](../pseudo/README.md). The packages in this module are used by kubernetes clients like the kustomize API. -Usage: +Go consumers of this API will have a `go.mod` file +requiring this module at a particular tag, e.g. ``` require sigs.k8s.io/pseudo/k8s v0.1.0 @@ -133,12 +133,12 @@ require sigs.k8s.io/pseudo/k8s v0.1.0 #### Release artifacts This is a Go library-only release, so the only -artifact per se is the repo tag, in the form `pseudok8s/v0.1.0`, +artifact per se is the repo tag, in the form `pseudo/k8s/v0.1.0`, that API clients can `require` from their `go.mod` file. Release notes should appear on the [release page]. -There's a toy executable called `pseudok8s`, which, if +There's a toy executable called `k8s`, which, if run, prints a message, but is of no practical use to an API client. @@ -173,6 +173,7 @@ git rebase upstream/master module=pluginator # The pluginator executable module=kustomize # The kustomize executable module=api # The API +module=pseudo/k8s # The clone of the k8s API ``` ### review tags to help determine new tag diff --git a/releasing/cloudbuild_pseudok8s.yaml b/releasing/cloudbuild_pseudok8s.yaml index 59491d095..15906b997 100644 --- a/releasing/cloudbuild_pseudok8s.yaml +++ b/releasing/cloudbuild_pseudok8s.yaml @@ -3,7 +3,7 @@ steps: args: [fetch, --tags, --depth=100] - name: "goreleaser/goreleaser:v0.120.3" entrypoint: /bin/sh - args: ["releasing/cloudbuild.sh", "pseudok8s"] + args: ["releasing/cloudbuild.sh", "pseudo/k8s"] secretEnv: ['GITHUB_TOKEN'] secrets: - kmsKeyName: projects/kustomize-199618/locations/global/keyRings/github-tokens/cryptoKeys/gh-release-token diff --git a/releasing/localbuild.sh b/releasing/localbuild.sh index 198968bb7..d2aada2eb 100755 --- a/releasing/localbuild.sh +++ b/releasing/localbuild.sh @@ -9,6 +9,7 @@ # module=kustomize # module=pluginator # pick one # module=api +# module=pseudo/k8s # # ./releasing/localbuild.sh $module # @@ -40,6 +41,7 @@ set -e module=$1 +cbname=$module case "$module" in api) ;; @@ -47,7 +49,8 @@ case "$module" in ;; pluginator) ;; - pseudok8s) + pseudo/k8s) + cbname=pseudok8s ;; *) echo "Don't recognize module=$module" @@ -56,7 +59,7 @@ case "$module" in esac config=$(mktemp) -cp releasing/cloudbuild_${module}.yaml $config +cp releasing/cloudbuild_${cbname}.yaml $config # Delete the cloud-builders/git step, which isn't needed # for a local run.