Major changes
K0sControlPlane
object now has all the needed status fields to be used with CAPI ClusterClass
.
As there is some changes in the K0sControlPlane
CRD users are advised to do the following when upgrading k0smotron CAPI controllers IF you are using ClusterClasses involving K0sControlPlane
:
- Pause the related cluster and control plane objects from reconciliation. This is to prevent CAPI topology controller copying over possibly wrong defaults from the templates.
kubectl annotate cluster my-cluster cluster.x-k8s.io/paused=true
kubectl annotate k0scontrolplane my-cluster-wv6zt cluster.x-k8s.io/paused=true
- Upgrade k0smotron CAPI controllers
- If you want to use
Recreate
strategy for controlplaneMachines
, edit and apply the strategy change to relatedK0sControlPlaneTemplate
objects- This is needed as CAPI topology controller, the one operating on
ClusterClass
will copy all the detail from the template on all reconciliations, e.g. cluster upgrades
- This is needed as CAPI topology controller, the one operating on
- Unpause cluster and controlplane
kubectl -n capv-clusters annotate cluster my-cluster cluster.x-k8s.io/paused-
kubectl -n capv-clusters annotate k0scontrolplane my-cluster-wv6zt cluster.x-k8s.io/paused-
- Now you can upgrade the cluster via
Cluster.topology.version
What's Changed
- Bump termcolor from 2.4.0 to 2.5.0 in /docs by @dependabot in #762
- Fix marking etcdmember leave by @makhov in #767
- Bump the mkdocs group across 1 directory with 3 updates by @dependabot in #772
- Bump mkdocs-ezglossary-plugin from 1.7.0 to 1.7.1 in /docs in the mkdocs group by @dependabot in #773
- Bump markupsafe from 2.1.5 to 3.0.1 in /docs by @dependabot in #769
- Bump pyparsing from 3.1.4 to 3.2.0 in /docs by @dependabot in #776
- Bump charset-normalizer from 3.3.2 to 3.4.0 in /docs by @dependabot in #777
- Bump pymdown-extensions from 10.11.1 to 10.11.2 in /docs by @dependabot in #757
- Bump mkdocs-material from 9.5.40 to 9.5.41 in /docs in the mkdocs group by @dependabot in #779
- Bump mkdocs-macros-plugin from 1.3.5 to 1.3.6 in /docs in the mkdocs group by @dependabot in #782
- Check if controlPlaneEndpoint can accept join requests by @makhov in #771
- Bump markupsafe from 3.0.1 to 3.0.2 in /docs by @dependabot in #785
- Bump mkdocs-material from 9.5.41 to 9.5.42 in /docs in the mkdocs group by @dependabot in #784
- Bump shogo82148/actions-create-release from 1.7.5 to 1.7.6 by @dependabot in #786
- Bump shogo82148/actions-upload-release-asset from 1.7.7 to 1.7.8 by @dependabot in #787
- Add missing K0sControlPlane status fields and refactor status calc by @jnummelin in #774
- Minor improvements to avoid exponential backoff on not-ready infra by @makhov in #783
- Add docs about Cluster persistance by @apedriza in #759
- Metadata file for 1.2.x by @makhov in #791
- Inttest/capi clusterclass recreate upgrade by @jnummelin in #788
- Add machine names as etcd name by @apedriza in #778
- Fix k0s config generating by @makhov in #799
- Clean up controlnode if machine related to K0sControlPlane is deleted by @apedriza in #790
- Fix cluster annotations propagation to statefulset and pods by @apedriza in #800
- Move dynamic config reconciliation to K0sControlPlane by @makhov in #801
- Add issue template for bugs and features by @apedriza in #796
- Fix machine implementation updating by @makhov in #789
Full Changelog: v1.1.2...v1.2.0