Skip to content

Commit

Permalink
Upgrade CAPI/CAPO to v1.6.2/v0.9.0 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray authored Mar 12, 2024
1 parent c1903fa commit 23c3610
Show file tree
Hide file tree
Showing 42 changed files with 1,146 additions and 157 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Update this for every tagged release.
CHART_VERSION = v0.1.10
CHART_VERSION = v0.1.11

# Defines the versions to use for cluster API components.
CAPI_VERSION = v1.4.3
CAPO_VERSION = v0.8.0
CAPI_VERSION = v1.6.2
CAPO_VERSION = v0.9.0

# All the charts we can generate.
CHARTS = cluster-api-core \
Expand Down
4 changes: 2 additions & 2 deletions charts/cluster-api-bootstrap-kubeadm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
appVersion: v1.4.3
appVersion: v1.6.2
description: A Helm chart for deploying cluster API.
icon: https://assets.unikorn-cloud.org/assets/images/logos/dark-on-light/icon.png
name: cluster-api-bootstrap-kubeadm
type: application
version: v0.1.10
version: v0.1.11
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: capi-kubeadm-bootstrap-system/capi-kubeadm-bootstrap-serving-cert
controller-gen.kubebuilder.io/version: v0.11.4
controller-gen.kubebuilder.io/version: v0.13.0
labels:
cluster.x-k8s.io/provider: bootstrap-kubeadm
cluster.x-k8s.io/v1alpha3: v1alpha3
cluster.x-k8s.io/v1alpha4: v1alpha4
cluster.x-k8s.io/v1beta1: v1beta1
name: kubeadmconfigs.bootstrap.cluster.x-k8s.io
Expand Down Expand Up @@ -1019,7 +1018,7 @@ spec:
type: boolean
type: object
type: object
served: true
served: false
storage: false
subresources:
status: {}
Expand Down Expand Up @@ -2005,7 +2004,7 @@ spec:
type: boolean
type: object
type: object
served: true
served: false
storage: false
subresources:
status: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: capi-kubeadm-bootstrap-system/capi-kubeadm-bootstrap-serving-cert
controller-gen.kubebuilder.io/version: v0.11.4
controller-gen.kubebuilder.io/version: v0.13.0
labels:
cluster.x-k8s.io/provider: bootstrap-kubeadm
cluster.x-k8s.io/v1alpha3: v1alpha3
cluster.x-k8s.io/v1alpha4: v1alpha4
cluster.x-k8s.io/v1beta1: v1beta1
name: kubeadmconfigtemplates.bootstrap.cluster.x-k8s.io
Expand Down Expand Up @@ -1010,7 +1009,7 @@ spec:
- template
type: object
type: object
served: true
served: false
storage: false
- additionalPrinterColumns:
- description: Time duration since creation of KubeadmConfigTemplate
Expand Down Expand Up @@ -1993,7 +1992,7 @@ spec:
- template
type: object
type: object
served: true
served: false
storage: false
subresources: {}
- additionalPrinterColumns:
Expand Down
12 changes: 12 additions & 0 deletions charts/cluster-api-bootstrap-kubeadm/templates/clusterrole-0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ rules:
- patch
- update
- watch
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
- apiGroups:
- bootstrap.cluster.x-k8s.io
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ spec:
containers:
- args:
- --leader-elect
- --metrics-bind-addr=localhost:8080
- --feature-gates=MachinePool={{ .Values.exp_machine_pool }},KubeadmBootstrapFormatIgnition={{ .Values.exp_kubeadm_bootstrap_format_ignition }},LazyRestmapper={{ .Values.exp_lazy_restmapper }}
- --diagnostics-address={{ .Values.capi_diagnostics_address }}
- --insecure-diagnostics={{ .Values.capi_insecure_diagnostics }}
- --feature-gates=MachinePool={{ .Values.exp_machine_pool }},KubeadmBootstrapFormatIgnition={{ .Values.exp_kubeadm_bootstrap_format_ignition }}
- --bootstrap-token-ttl={{ .Values.kubeadm_bootstrap_token_ttl }}
- --logging-format=json
command:
Expand All @@ -41,6 +42,9 @@ spec:
- containerPort: 9440
name: healthz
protocol: TCP
- containerPort: 8443
name: metrics
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
Expand Down
5 changes: 3 additions & 2 deletions charts/cluster-api-bootstrap-kubeadm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
capi_diagnostics_address: :8443
capi_insecure_diagnostics: false
exp_kubeadm_bootstrap_format_ignition: false
exp_lazy_restmapper: false
exp_machine_pool: false
image: registry.k8s.io/cluster-api/kubeadm-bootstrap-controller:v1.4.3
image: registry.k8s.io/cluster-api/kubeadm-bootstrap-controller:v1.6.2
kubeadm_bootstrap_token_ttl: 15m
2 changes: 1 addition & 1 deletion charts/cluster-api-cluster-openstack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: cluster-api-cluster-openstack
description: A Helm chart to deploy a Kubernetes Cluster
type: application
version: v0.3.26
version: v0.3.27
icon: https://raw.githubusercontent.com/unikorn-cloud/helm-cluster-api/main/icons/default.png
4 changes: 2 additions & 2 deletions charts/cluster-api-control-plane-kubeadm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
appVersion: v1.4.3
appVersion: v1.6.2
description: A Helm chart for deploying cluster API.
icon: https://assets.unikorn-cloud.org/assets/images/logos/dark-on-light/icon.png
name: cluster-api-control-plane-kubeadm
type: application
version: v0.1.10
version: v0.1.11
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: capi-kubeadm-control-plane-system/capi-kubeadm-control-plane-serving-cert
controller-gen.kubebuilder.io/version: v0.11.4
controller-gen.kubebuilder.io/version: v0.13.0
labels:
cluster.x-k8s.io/provider: control-plane-kubeadm
cluster.x-k8s.io/v1alpha3: v1alpha3
cluster.x-k8s.io/v1alpha4: v1alpha4
cluster.x-k8s.io/v1beta1: v1beta1
name: kubeadmcontrolplanes.controlplane.cluster.x-k8s.io
Expand Down Expand Up @@ -1201,7 +1200,7 @@ spec:
type: integer
type: object
type: object
served: true
served: false
storage: false
subresources:
scale:
Expand Down Expand Up @@ -2413,7 +2412,7 @@ spec:
type: string
type: object
type: object
served: true
served: false
storage: false
subresources:
scale:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: capi-kubeadm-control-plane-system/capi-kubeadm-control-plane-serving-cert
controller-gen.kubebuilder.io/version: v0.11.4
controller-gen.kubebuilder.io/version: v0.13.0
labels:
cluster.x-k8s.io/provider: control-plane-kubeadm
cluster.x-k8s.io/v1alpha3: v1alpha3
cluster.x-k8s.io/v1alpha4: v1alpha4
cluster.x-k8s.io/v1beta1: v1beta1
name: kubeadmcontrolplanetemplates.controlplane.cluster.x-k8s.io
Expand Down Expand Up @@ -1190,7 +1189,7 @@ spec:
- template
type: object
type: object
served: true
served: false
storage: false
subresources: {}
- additionalPrinterColumns:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ rules:
- get
- list
- watch
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
- apiGroups:
- bootstrap.cluster.x-k8s.io
- controlplane.cluster.x-k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ spec:
containers:
- args:
- --leader-elect
- --metrics-bind-addr=localhost:8080
- --feature-gates=ClusterTopology={{ .Values.cluster_topology }},KubeadmBootstrapFormatIgnition={{ .Values.exp_kubeadm_bootstrap_format_ignition }},LazyRestmapper={{ .Values.exp_lazy_restmapper }}
- --diagnostics-address={{ .Values.capi_diagnostics_address }}
- --insecure-diagnostics={{ .Values.capi_insecure_diagnostics }}
- --feature-gates=ClusterTopology={{ .Values.cluster_topology }},KubeadmBootstrapFormatIgnition={{ .Values.exp_kubeadm_bootstrap_format_ignition }}
- --logging-format=json
command:
- /manager
Expand Down Expand Up @@ -53,6 +54,9 @@ spec:
- containerPort: 9440
name: healthz
protocol: TCP
- containerPort: 8443
name: metrics
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,19 @@ webhooks:
service:
name: capi-kubeadm-control-plane-webhook-service
namespace: capi-kubeadm-control-plane-system
path: /validate-controlplane-cluster-x-k8s-io-v1beta1-kubeadmcontrolplane
path: /validate-scale-controlplane-cluster-x-k8s-io-v1beta1-kubeadmcontrolplane
failurePolicy: Fail
matchPolicy: Equivalent
name: validation.kubeadmcontrolplane.controlplane.cluster.x-k8s.io
name: validation-scale.kubeadmcontrolplane.controlplane.cluster.x-k8s.io
rules:
- apiGroups:
- controlplane.cluster.x-k8s.io
apiVersions:
- v1beta1
operations:
- CREATE
- UPDATE
resources:
- kubeadmcontrolplanes
- kubeadmcontrolplanes/scale
sideEffects: None
- admissionReviewVersions:
- v1
Expand All @@ -36,9 +35,10 @@ webhooks:
service:
name: capi-kubeadm-control-plane-webhook-service
namespace: capi-kubeadm-control-plane-system
path: /validate-controlplane-cluster-x-k8s-io-v1beta1-kubeadmcontrolplanetemplate
path: /validate-controlplane-cluster-x-k8s-io-v1beta1-kubeadmcontrolplane
failurePolicy: Fail
name: validation.kubeadmcontrolplanetemplate.controlplane.cluster.x-k8s.io
matchPolicy: Equivalent
name: validation.kubeadmcontrolplane.controlplane.cluster.x-k8s.io
rules:
- apiGroups:
- controlplane.cluster.x-k8s.io
Expand All @@ -48,7 +48,7 @@ webhooks:
- CREATE
- UPDATE
resources:
- kubeadmcontrolplanetemplates
- kubeadmcontrolplanes
sideEffects: None
- admissionReviewVersions:
- v1
Expand All @@ -57,17 +57,17 @@ webhooks:
service:
name: capi-kubeadm-control-plane-webhook-service
namespace: capi-kubeadm-control-plane-system
path: /validate-scale-controlplane-cluster-x-k8s-io-v1beta1-kubeadmcontrolplane
path: /validate-controlplane-cluster-x-k8s-io-v1beta1-kubeadmcontrolplanetemplate
failurePolicy: Fail
matchPolicy: Equivalent
name: validation-scale.kubeadmcontrolplane.controlplane.cluster.x-k8s.io
name: validation.kubeadmcontrolplanetemplate.controlplane.cluster.x-k8s.io
rules:
- apiGroups:
- controlplane.cluster.x-k8s.io
apiVersions:
- v1beta1
operations:
- CREATE
- UPDATE
resources:
- kubeadmcontrolplanes/scale
- kubeadmcontrolplanetemplates
sideEffects: None
5 changes: 3 additions & 2 deletions charts/cluster-api-control-plane-kubeadm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
capi_diagnostics_address: :8443
capi_insecure_diagnostics: false
cluster_topology: false
exp_kubeadm_bootstrap_format_ignition: false
exp_lazy_restmapper: false
image: registry.k8s.io/cluster-api/kubeadm-control-plane-controller:v1.4.3
image: registry.k8s.io/cluster-api/kubeadm-control-plane-controller:v1.6.2
4 changes: 2 additions & 2 deletions charts/cluster-api-core/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
appVersion: v1.4.3
appVersion: v1.6.2
description: A Helm chart for deploying cluster API.
icon: https://assets.unikorn-cloud.org/assets/images/logos/dark-on-light/icon.png
name: cluster-api-core
type: application
version: v0.1.10
version: v0.1.11
Loading

0 comments on commit 23c3610

Please sign in to comment.