diff --git a/releasing/README.md b/releasing/README.md index 5e8f589d5..85c51b364 100644 --- a/releasing/README.md +++ b/releasing/README.md @@ -12,7 +12,7 @@ of one of the [Go modules] in this repository. These modules release independently. -See this [multi-module repo] tagging discussion +See this [multi-module repo] tagging discussion for an explanation of the `foo/v2.3.0` tags applied below. ## Module summaries @@ -23,11 +23,12 @@ for an explanation of the `foo/v2.3.0` tags applied below. [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 -| Module Description | Module Prefix | Ex. Tag | Ex. Branch Name | +| Module Description | Module Prefix | Ex. Tag | Ex. Branch Name | | --- | ------ | --- | --- | | 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_ | ### sigs.k8s.io/kustomize/kustomize @@ -112,6 +113,35 @@ infrequently). Executables appear on the [release page]. The tag appears in the URL, e.g. [pluginator/v1.0.0]. +### sigs.k8s.io/kustomize/pseudo/k8s + + +This is a clone of a combination of kubernetes repositories. +See the [README](../pseudo/README.md). + +#### Packages + +The packages in this module are used by kubernetes +clients like the kustomize API. + +Usage: + +``` +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`, +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 +run, prints a message, but is of +no practical use to an API client. + ## Release procedure > TODO: script what follows, so someone can enter diff --git a/releasing/cloudbuild.sh b/releasing/cloudbuild.sh index 1da7b1a8b..4d1732cc6 100755 --- a/releasing/cloudbuild.sh +++ b/releasing/cloudbuild.sh @@ -27,7 +27,12 @@ if [ "$module" != "$tModule" ]; then exit 1 fi -cd $module +if [ "$module" == "pseudok8s" ]; then + cd pseudo/k8s +else + cd $module +fi + configFile=$(mktemp) cat <$configFile diff --git a/releasing/cloudbuild_pseudok8s.yaml b/releasing/cloudbuild_pseudok8s.yaml new file mode 100644 index 000000000..59491d095 --- /dev/null +++ b/releasing/cloudbuild_pseudok8s.yaml @@ -0,0 +1,11 @@ +steps: +- name: "gcr.io/cloud-builders/git" + args: [fetch, --tags, --depth=100] +- name: "goreleaser/goreleaser:v0.120.3" + entrypoint: /bin/sh + args: ["releasing/cloudbuild.sh", "pseudok8s"] + secretEnv: ['GITHUB_TOKEN'] +secrets: +- kmsKeyName: projects/kustomize-199618/locations/global/keyRings/github-tokens/cryptoKeys/gh-release-token + secretEnv: + GITHUB_TOKEN: CiQAyrREbPgXJOeT7M3t+WlxkhXwlMPudixBeiyWTjmLOMLqdK4SUQA0W+xUmDJKAhyfHCcwqSEzUn9OwKC7XAYcmwe0CCKTCbPbDgmioDK24q3LVapndXNvnnHvCjhOJNEr1o+P1DCF+LlzYV2YL8lP09rrKrslPg== diff --git a/releasing/localbuild.sh b/releasing/localbuild.sh index b49eb0dbb..198968bb7 100755 --- a/releasing/localbuild.sh +++ b/releasing/localbuild.sh @@ -47,6 +47,8 @@ case "$module" in ;; pluginator) ;; + pseudok8s) + ;; *) echo "Don't recognize module=$module" exit 1