-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CAPD: add version aware patch for cgroupDriver to support v1.24 and l…
…ower versions at the same time * Bumps kind to v0.13 for v1.24 support as kind management cluster * Migrates CI upgrade tests to use cluster class and version aware patches for cgroupDriver * Implement workaround for DockerMachinePools which are not supported by ClusterClass to use correct cgroupDriver on upgrade tests.
- Loading branch information
Showing
26 changed files
with
183 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
...2e/data/infrastructure-docker/v1beta1/cluster-template-kcp-scale-in/cluster-with-kcp.yaml
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...ta/infrastructure-docker/v1beta1/cluster-template-kcp-scale-in/kcp-scale-in-variable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- op: add | ||
path: /spec/topology/variables/- | ||
value: | ||
name: kubeadmControlPlaneMaxSurge | ||
value: "0" |
11 changes: 7 additions & 4 deletions
11
test/e2e/data/infrastructure-docker/v1beta1/cluster-template-kcp-scale-in/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
bases: | ||
- ../bases/crs.yaml | ||
- ../bases/md.yaml | ||
- ../bases/cluster-with-kcp.yaml | ||
- ../bases/cluster-with-topology.yaml | ||
|
||
patchesStrategicMerge: | ||
- ./cluster-with-kcp.yaml | ||
patches: | ||
- path: ./kcp-scale-in-variable.yaml | ||
target: | ||
group: cluster.x-k8s.io | ||
version: v1beta1 | ||
kind: Cluster |
6 changes: 6 additions & 0 deletions
6
.../data/infrastructure-docker/v1beta1/cluster-template-upgrades-cgroupfs/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resources: | ||
- ../cluster-template-upgrades | ||
- ./mp-cgroupfs.yaml | ||
|
||
patches: | ||
- ./mp-default-cgroupfs.yaml |
13 changes: 13 additions & 0 deletions
13
...2e/data/infrastructure-docker/v1beta1/cluster-template-upgrades-cgroupfs/mp-cgroupfs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# KubeadmConfigTemplate referenced by the MachinePool for cgroupfs | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfig | ||
metadata: | ||
name: "${CLUSTER_NAME}-mp-0-config-cgroupfs" | ||
spec: | ||
joinConfiguration: | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
# We have to pin the cgroupDriver to cgroupfs as kubeadm >=1.21 defaults to systemd | ||
# kind will implement systemd support in: https://github.com/kubernetes-sigs/kind/issues/1726 | ||
cgroup-driver: cgroupfs | ||
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% |
10 changes: 10 additions & 0 deletions
10
...infrastructure-docker/v1beta1/cluster-template-upgrades-cgroupfs/mp-default-cgroupfs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachinePool | ||
metadata: | ||
name: "${CLUSTER_NAME}-mp-0" | ||
spec: | ||
template: | ||
spec: | ||
bootstrap: | ||
configRef: | ||
name: "${CLUSTER_NAME}-mp-0-config-cgroupfs" |
3 changes: 1 addition & 2 deletions
3
test/e2e/data/infrastructure-docker/v1beta1/cluster-template-upgrades/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
resources: | ||
- ../bases/cluster-with-kcp.yaml | ||
- ../bases/cluster-with-topology.yaml | ||
- ../bases/crs.yaml | ||
- ../bases/md.yaml | ||
- ../bases/mp.yaml |
Oops, something went wrong.