Skip to content

Commit 14c6e72

Browse files
committed
release(v0.2.0-alpha.0): prepare release
This is the official v0.2.0-alpha.0 release. Signed-off-by: Artem Chernyshev <[email protected]>
1 parent cd6417d commit 14c6e72

File tree

8 files changed

+194
-67
lines changed

8 files changed

+194
-67
lines changed

.drone.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ steps:
118118
draft: true
119119
files:
120120
- _out/*
121+
note: _out/RELEASE_NOTES.md
121122
when:
122123
event:
123124
- tag

CHANGELOG.md

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,133 @@
1+
## [CAPI Control Plane Provider Talos 0.2.0-alpha.0](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/releases/tag/v0.2.0-alpha.0) (2021-09-23)
2+
3+
Welcome to the v0.2.0-alpha.0 release of CAPI Control Plane Provider Talos!
4+
*This is a pre-release of CAPI Control Plane Provider Talos*
5+
6+
7+
8+
Please try out the release binaries and report any issues at
9+
https://github.com/talos-systems/cluster-api-control-plane-provider-talos/issues.
10+
11+
### CAPI v1alpha3
12+
13+
This release of CACPPT is compatible with CAPI v1alpha3 (v0.3.x).
14+
Next release of CACPPT will bring compatibility with CAPI v1alpha4 (v0.4.x).
15+
16+
17+
### Scaling Fixes
18+
19+
Control plane scaling up and down now runs slower but is more reliable.
20+
21+
22+
### Contributors
23+
24+
* Artem Chernyshev
25+
* Alexey Palazhchenko
26+
* Andrey Smirnov
27+
* Andrey Smirnov
28+
* Spencer Smith
29+
* Alexey Palazhchenko
30+
* Andrey Smirnov
31+
* Spencer Smith
32+
33+
### Changes
34+
<details><summary>9 commits</summary>
35+
<p>
36+
37+
* [`701511f`](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/commit/701511f2539bfb653e42295b08b05ddc49ae36b1) release(v0.2.0-alpha.0): prepare release
38+
* [`8b52b8a`](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/commit/8b52b8addd9fa4235c542b0b8554a76f5c76a643) chore: update go to 1.17
39+
* [`86d679a`](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/commit/86d679a44e543789474c0b8edaf435a764f7dd2e) chore: update cabpt to v0.3.0
40+
* [`a616f4b`](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/commit/a616f4b4bd3b208595cd102eb9e32c8a31b95e18) test: add machine removal test
41+
* [`6ad6aac`](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/commit/6ad6aac1315ad5bc8e1264af6162863418cdb280) test: implement scale up and down tests and fix found issues
42+
* [`9435b12`](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/commit/9435b1247f010bee00b4a8e4dc592121a0eb2449) chore: add e2e test running on AWS infra
43+
* [`4c7d42c`](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/commit/4c7d42caf79ca209f5cda84db2eb712433d3c68b) chore: update bootstrap provider
44+
* [`119b969`](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/commit/119b969be2fe152a0e8a63d189563deed55110b4) fix: clean up couple small issues in the etcd member audit code
45+
* [`9be7b88`](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/commit/9be7b88bf4a14aec584fe68561c3fda3fbeaf990) chore: update bootstrap provider to stable release
46+
</p>
47+
</details>
48+
49+
### Changes from talos-systems/capi-utils
50+
<details><summary>15 commits</summary>
51+
<p>
52+
53+
* [`9587089`](https://github.com/talos-systems/capi-utils/commit/9587089e8425e11ef34d00c33b38b1d3c1710b42) feat: add API method to get CAPI version
54+
* [`3053852`](https://github.com/talos-systems/capi-utils/commit/3053852b107c9dd0a82340accc98b798abd6160c) chore: update go mod to remove requires
55+
* [`2e0c2fe`](https://github.com/talos-systems/capi-utils/commit/2e0c2fe20b78c10d8af6f62662063ae2c41124c9) feat: allow for specifying namespace in infra providers
56+
* [`e5fdc2a`](https://github.com/talos-systems/capi-utils/commit/e5fdc2a068ac8bfed8effdd33e717aa3f97a62a9) feat: enable builds of darwin/windows
57+
* [`028c7d3`](https://github.com/talos-systems/capi-utils/commit/028c7d3c025764260fb37ae5618c59122027640d) fix: call sync until number of replicas != actual replicas
58+
* [`0fbad9a`](https://github.com/talos-systems/capi-utils/commit/0fbad9a4d06661e7fc8816d98663a349f4bde936) fix: sync talos config and nodes list after scaling
59+
* [`c1830ba`](https://github.com/talos-systems/capi-utils/commit/c1830ba4aada30e9b968b456620526bf35c73190) feat: support scaling cluster nodes up and down
60+
* [`5e78193`](https://github.com/talos-systems/capi-utils/commit/5e78193aff23909ec8516fad8a02f077d57d5ad5) feat: add ability to detect CAPI version and installed infra providers
61+
* [`c20b1a8`](https://github.com/talos-systems/capi-utils/commit/c20b1a80b4277c1729d0b5d4972aa2794203e83c) fix: do CAPI init once if several infra providers are defined
62+
* [`83353b6`](https://github.com/talos-systems/capi-utils/commit/83353b6b16d0ebc813ac43f45f2a18a1f451e016) fix: remove lots of unused indirect dependencies
63+
* [`9a6b78a`](https://github.com/talos-systems/capi-utils/commit/9a6b78a78edbbcb662f349ede1d66c0b1326a4d0) chore: move provider creation code to the common method
64+
* [`c2adaee`](https://github.com/talos-systems/capi-utils/commit/c2adaee0629a0b73565a0a67ccb4b393c32f6063) feat: add `DestroyCluster` function
65+
* [`81aabe0`](https://github.com/talos-systems/capi-utils/commit/81aabe04803fa529ce73c2dbf49dc3f83394c66d) feat: support bootstrapping AWS clusters
66+
* [`64a30e7`](https://github.com/talos-systems/capi-utils/commit/64a30e7fcd5f6fc488f70b8f8b08548a1a959199) feat: add the code for bootstrapping CAPI using kubeconfig
67+
* [`6f52762`](https://github.com/talos-systems/capi-utils/commit/6f527622e0ae356ddbc59622bd673a8071650304) Initial commit
68+
</p>
69+
</details>
70+
71+
### Changes from talos-systems/cluster-api-bootstrap-provider-talos
72+
<details><summary>20 commits</summary>
73+
<p>
74+
75+
* [`1122f4c`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/1122f4c4e47ccf1f83ebccf24daf98e9f2124335) release(v0.3.0): prepare release
76+
* [`3147ba4`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/3147ba4fe57b88975133c598c226ff4e397efb44) release(v0.3.0-alpha.1): prepare release
77+
* [`977121a`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/977121ad14dc0637f7c4282e69a4ee26e28372d4) fix: construct properly data secret name
78+
* [`f8c75c8`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/f8c75c89c4653de30165fb1538e906256a4eec66) fix: update metadata.yaml for v0.3 of CABPT
79+
* [`db60f9e`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/db60f9eb0697c4949be9c00cf8dc7787d383bad2) release(v0.3.0-alpha.0): prepare release
80+
* [`755a2dd`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/755a2dd90c3668db89f8eae14f60db4564764475) fix: update Talos machinery to 0.12, fix secrets persistence
81+
* [`f91b032`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/f91b032935776c1224f824cc860bfa4df5e220b1) fix: use bootstrap data secret names
82+
* [`6bff239`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/6bff2393840655c2361def455b601511b86ba71f) chore: use Go 1.17
83+
* [`56fb73b`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/56fb73b53f41b91b12ba2b3c331d7a04b7263a17) test: add test for the second machine
84+
* [`e5b7738`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/e5b773833120fdd7ca4d57e0a0a4fe781495bf7e) test: add more tests
85+
* [`bc4105d`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/bc4105d9e8366d4e840705a6cecfbc81bdcca00a) test: wait for CAPI availability
86+
* [`c82b8ab`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/c82b8ab47bca5313cb96df1b70de0914da285331) chore: make versions configurable
87+
* [`5594c96`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/5594c96daa55fb9fc9af585e8f2fc26551ce9bb5) chore: use codecov uploader from build-container
88+
* [`cced038`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/cced038257d3eec5b7c48bc524de5165b5734496) chore: fix license headers
89+
* [`7b5dc51`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/7b5dc51e83a54a1f5fa707c66a296ca9514c8722) chore: do not run tests on ARM
90+
* [`d6258cf`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/d6258cf21778149a254d9669b03ac10bae9e0955) chore: improve tests runner
91+
* [`c6ce363`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/c6ce36375ef145760647c632d64a9a3c93574e4b) chore: sign Drone CI configuration
92+
* [`ad592d1`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/ad592d16fa8397f88a28e6a4151bc64b0a1c097d) chore: add basic integration test
93+
* [`9fb0d07`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/9fb0d07ca4d2e8333b0b61ee0fe0ba3e6660489f) chore: add missing LICENSE file
94+
* [`acf18d2`](https://github.com/talos-systems/cluster-api-bootstrap-provider-talos/commit/acf18d2bb09aab64687c1fccf1e628ef76e9cff8) chore: update machinery to v0.11.3
95+
</p>
96+
</details>
97+
98+
### Changes from talos-systems/go-retry
99+
<details><summary>8 commits</summary>
100+
<p>
101+
102+
* [`c78cc95`](https://github.com/talos-systems/go-retry/commit/c78cc953d9e95992575305b4e8648392c6c9b9e6) fix: implement `errors.Is` for all errors in the set
103+
* [`7885e16`](https://github.com/talos-systems/go-retry/commit/7885e16b2cb0267bcc8b07cdd0eced14e8005864) feat: add ExpectedErrorf
104+
* [`3d83f61`](https://github.com/talos-systems/go-retry/commit/3d83f6126c1a3a238d1d1d59bfb6273e4087bdac) feat: deprecate UnexpectedError
105+
* [`b9dc1a9`](https://github.com/talos-systems/go-retry/commit/b9dc1a990133dd3399549b4ea199759bdfe58bb8) feat: add support for `context.Context` in Retry
106+
* [`8c63d29`](https://github.com/talos-systems/go-retry/commit/8c63d290a6884095ea2e754c52e575603abe4bc0) fix: correctly implement error interfaces on wrapped errors
107+
* [`752f081`](https://github.com/talos-systems/go-retry/commit/752f081252cfef6106151dc285fcbe4849ab0a0c) feat: add an option to log errors being retried
108+
* [`073067b`](https://github.com/talos-systems/go-retry/commit/073067bd95a70e9b0a2a8d07d33311be69c24923) feat: copy initial version from talos-systems/talos
109+
* [`c7968c5`](https://github.com/talos-systems/go-retry/commit/c7968c54b4b1743d14dedce51431bf6e79a67a4f) Initial commit
110+
</p>
111+
</details>
112+
113+
### Dependency Changes
114+
115+
* **github.com/coreos/go-semver** v0.3.0 **_new_**
116+
* **github.com/go-logr/logr** v0.1.0 -> v0.4.0
117+
* **github.com/google/uuid** v1.1.2 **_new_**
118+
* **github.com/onsi/ginkgo** v1.15.0 -> v1.16.4
119+
* **github.com/onsi/gomega** v1.10.1 -> v1.14.0
120+
* **github.com/stretchr/testify** v1.7.0 **_new_**
121+
* **github.com/talos-systems/capi-utils** 9587089e8425 **_new_**
122+
* **github.com/talos-systems/cluster-api-bootstrap-provider-talos** v0.2.0 -> v0.3.0
123+
* **github.com/talos-systems/go-retry** v0.3.1 **_new_**
124+
* **github.com/talos-systems/talos/pkg/machinery** 828772cec9a3 -> 7e63e43eb399
125+
* **google.golang.org/grpc** v1.40.0 **_new_**
126+
* **gopkg.in/yaml.v3** 496545a6307b **_new_**
127+
* **sigs.k8s.io/cluster-api** v0.3.12 -> v0.3.23
128+
129+
Previous release can be found at [v0.1.1](https://github.com/talos-systems/cluster-api-control-plane-provider-talos/releases/tag/v0.1.1)
130+
1131

2132
<a name="v0.1.0-alpha.13"></a>
3133
## [v0.1.0-alpha.13](https://github.com/talos-systems/talos/compare/v0.1.0-alpha.12...v0.1.0-alpha.13) (2021-05-14)

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@ container: generate ## Build the container image.
7878
manifests: ## Generate manifests (e.g. CRD, RBAC, etc.).
7979
@$(MAKE) local-$@ DEST=./ PLATFORM=linux/amd64
8080

81+
.PHONY: release-notes
82+
release-notes: ## Create the release notes.
83+
@mkdir -p $(ARTIFACTS)
84+
ARTIFACTS=$(ARTIFACTS) ./hack/release.sh $@ $(ARTIFACTS)/RELEASE_NOTES.md $(TAG)
85+
8186
.PHONY: release
82-
release: manifests container ## Create the release YAML. The build result will be ouput to the specified local destination.
87+
release: manifests container release-notes ## Create the release YAML. The build result will be ouput to the specified local destination.
8388
@$(MAKE) local-$@ DEST=./$(ARTIFACTS) PLATFORM=linux/amd64
8489

8590
.PHONY: deploy

hack/git-chglog/CHANGELOG.tpl.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

hack/git-chglog/config.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

hack/release.sh

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,33 @@
22

33
set -e
44

5+
RELEASE_TOOL_IMAGE="ghcr.io/talos-systems/release-tool:latest"
6+
7+
function release-tool {
8+
docker pull "${RELEASE_TOOL_IMAGE}" >/dev/null
9+
docker run --rm -w /src -v "${PWD}":/src:ro "${RELEASE_TOOL_IMAGE}" -l -d -n ${2} -t "${1}" ./hack/release.toml
10+
}
11+
512
function changelog {
613
if [ "$#" -eq 1 ]; then
7-
git-chglog --output CHANGELOG.md -c ./hack/chglog/config.yml --tag-filter-pattern "^${1}" "${1}.0-alpha.1.."
8-
elif [ "$#" -eq 0 ]; then
9-
git-chglog --output CHANGELOG.md -c ./hack/chglog/config.yml
14+
(release-tool ${1}; echo; cat CHANGELOG.md) > CHANGELOG.md- && mv CHANGELOG.md- CHANGELOG.md
1015
else
1116
echo 1>&2 "Usage: $0 changelog [tag]"
1217
exit 1
1318
fi
1419
}
1520

21+
function release-notes {
22+
release-tool "${2}" --gfm > "${1}"
23+
24+
size=$(stat -c%s "${1}")
25+
26+
if (( size > 25000 )); then
27+
echo "Release notes size exceeds GitHub limit of 25000 bytes"
28+
exit 1
29+
fi
30+
}
31+
1632
function cherry-pick {
1733
if [ $# -ne 2 ]; then
1834
echo 1>&2 "Usage: $0 cherry-pick <commit> <branch>"
@@ -42,9 +58,10 @@ then
4258
else
4359
cat <<EOF
4460
Usage:
45-
commit: Create the official release commit message.
61+
commit: Create the official release commit message.
4662
cherry-pick: Cherry-pick a commit into a release branch.
47-
changelog: Update the specified CHANGELOG.
63+
changelog: Update the specified CHANGELOG.
64+
release-notes: Create release notes for GitHub release.
4865
EOF
4966

5067
exit 1

hack/release.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# commit to be tagged for new release
2+
commit = "HEAD"
3+
4+
project_name = "CAPI Control Plane Provider Talos"
5+
github_repo = "talos-systems/cluster-api-control-plane-provider-talos"
6+
match_deps = "^github.com/(talos-systems/[a-zA-Z0-9-]+)$"
7+
8+
# previous release
9+
previous = "v0.1.1"
10+
11+
pre_release = true
12+
13+
preface = """\
14+
"""
15+
16+
[notes]
17+
18+
[notes.capi]
19+
title = "CAPI v1alpha3"
20+
description = """\
21+
This release of CACPPT is compatible with CAPI v1alpha3 (v0.3.x).
22+
Next release of CACPPT will bring compatibility with CAPI v1alpha4 (v0.4.x).
23+
"""
24+
25+
[notes.scaling]
26+
title = "Scaling Fixes"
27+
description = """\
28+
Control plane scaling up and down now runs slower but is more reliable.
29+
"""

hack/test/e2e-aws.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,16 @@ function config {
8080
curl -Lo ${TMP}/kustomize.tar.gz https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv4.1.0/kustomize_v4.1.0_${PLATFORM}_amd64.tar.gz
8181
tar -xf ${TMP}/kustomize.tar.gz -C ${TMP} && rm ${TMP}/kustomize.tar.gz
8282

83-
export INFRASTRUCTURE_COMPONENTS_PATH=${TMP}/control-plane-talos/${TAG}/components.yaml
83+
# always use fake version tag here
84+
export INFRASTRUCTURE_COMPONENTS_PATH=${TMP}/control-plane-talos/v0.1.0/components.yaml
8485
mkdir -p $(dirname ${INFRASTRUCTURE_COMPONENTS_PATH})
8586

86-
cd config/manager
87+
cp -rf config ${TMP}/config
88+
89+
cd ${TMP}/config/manager
8790
${KUSTOMIZE} edit set image controller=${REGISTRY_AND_USERNAME}/${NAME}:${TAG}
8891
cd -
89-
${KUSTOMIZE} build config >${INFRASTRUCTURE_COMPONENTS_PATH}
92+
${KUSTOMIZE} build ${TMP}/config >${INFRASTRUCTURE_COMPONENTS_PATH}
9093
}
9194

9295
function cluster {

0 commit comments

Comments
 (0)