Set up for pseudok8s release.

This commit is contained in:
Jeffrey Regan
2019-11-11 12:37:12 -08:00
parent 0f81cf52e7
commit 9a25cb96b7
4 changed files with 51 additions and 3 deletions

View File

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

View File

@@ -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 <<EOF >$configFile

View File

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

View File

@@ -47,6 +47,8 @@ case "$module" in
;;
pluginator)
;;
pseudok8s)
;;
*)
echo "Don't recognize module=$module"
exit 1