mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #1774 from kubernetes-sigs/pseudoK8sReleaseStuff
Set up for pseudok8s release.
This commit is contained in:
@@ -12,7 +12,7 @@ of one of the [Go modules] in this repository.
|
|||||||
|
|
||||||
These modules release independently.
|
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.
|
for an explanation of the `foo/v2.3.0` tags applied below.
|
||||||
|
|
||||||
## Module summaries
|
## 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
|
[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
|
[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 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_ |
|
| 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_ |
|
| 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
|
### sigs.k8s.io/kustomize/kustomize
|
||||||
@@ -112,6 +113,35 @@ infrequently).
|
|||||||
Executables appear on the [release page].
|
Executables appear on the [release page].
|
||||||
The tag appears in the URL, e.g. [pluginator/v1.0.0].
|
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
|
## Release procedure
|
||||||
|
|
||||||
> TODO: script what follows, so someone can enter
|
> TODO: script what follows, so someone can enter
|
||||||
|
|||||||
@@ -27,7 +27,12 @@ if [ "$module" != "$tModule" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $module
|
if [ "$module" == "pseudok8s" ]; then
|
||||||
|
cd pseudo/k8s
|
||||||
|
else
|
||||||
|
cd $module
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
configFile=$(mktemp)
|
configFile=$(mktemp)
|
||||||
cat <<EOF >$configFile
|
cat <<EOF >$configFile
|
||||||
|
|||||||
11
releasing/cloudbuild_pseudok8s.yaml
Normal file
11
releasing/cloudbuild_pseudok8s.yaml
Normal 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==
|
||||||
@@ -47,6 +47,8 @@ case "$module" in
|
|||||||
;;
|
;;
|
||||||
pluginator)
|
pluginator)
|
||||||
;;
|
;;
|
||||||
|
pseudok8s)
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Don't recognize module=$module"
|
echo "Don't recognize module=$module"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user