Skip to content

Commit 64f0980

Browse files
Minor fixes to make 1.23 as default version in test, support 1.23 to 1.24 test upgrades, and remove hardcoding of Kubernetes versions (#111)
1 parent eef6908 commit 64f0980

File tree

9 files changed

+338
-1059
lines changed

9 files changed

+338
-1059
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,18 @@ Previous meetings: [ [notes][notes] | [recordings][notes] (coming soon) ]
4848
**NOTE:** As the versioning for this project is tied to the versioning of Cluster API, future modifications to this
4949
policy may be made to more closely align with other providers in the Cluster API ecosystem.
5050

51-
#### Cluster API Versions
51+
### Cluster API Versions
5252

53-
| | v1beta1 (v1.0) |
54-
| ------------------------------ | :--------------: |
55-
| OCI Provider v1beta1 (v0.1.0) ||
53+
CAPOCI supports the following Cluster API versions.
5654

57-
#### Supported Kubernetes versions
55+
| | v1beta1 (v1.0) |
56+
| ---------------------------- | -------------- |
57+
| OCI Provider v1beta1 (v0.1) ||
5858

59-
| | v1.20 | v1.21 |
60-
| ------------------------------ | :-----: | :-----: |
61-
| OCI Provider v1beta1 (v0.1.0) |||
59+
### Kubernetes versions
60+
61+
CAPOCI provider is able to install and manage the [versions of Kubernetes supported by
62+
Cluster API (CAPI)](https://cluster-api.sigs.k8s.io/reference/versions.html#supported-kubernetes-versions).
6263

6364
[cluster_api]: https://github.com/oracle/cluster-api-provider-oci
6465
[image_builder_book]: https://image-builder.sigs.k8s.io/capi/providers/oci.html

docs/src/introduction.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@ policy may be made to more closely align with other providers in the Cluster API
4040

4141
### Cluster API Versions
4242

43+
CAPOCI supports the following Cluster API versions.
44+
4345
| | v1beta1 (v1.0) |
4446
| ---------------------------- | -------------- |
4547
| OCI Provider v1beta1 (v0.1) ||
4648

47-
### Supported Kubernetes versions
49+
### Kubernetes versions
4850

49-
| | v1.20 | v1.21 |
50-
| ---------------------------- | ----- | ----- |
51-
| OCI Provider v1beta1 (v0.1) |||
51+
CAPOCI provider is able to install and manage the [versions of Kubernetes supported by
52+
Cluster API (CAPI)](https://cluster-api.sigs.k8s.io/reference/versions.html#supported-kubernetes-versions).
5253

5354
[cluster_api]: https://github.com/oracle/cluster-api-provider-oci
5455
[image_builder_book]: https://image-builder.sigs.k8s.io/capi/providers/oci.html

test/e2e/config/e2e_conf.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ providers:
88
- name: cluster-api
99
type: CoreProvider
1010
versions:
11-
- name: v1.1.0
12-
value: https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.0/core-components.yaml
11+
- name: v1.1.4
12+
value: https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.4/core-components.yaml
1313
type: url
1414
files:
1515
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
@@ -21,8 +21,8 @@ providers:
2121
- name: kubeadm
2222
type: BootstrapProvider
2323
versions:
24-
- name: v1.1.0
25-
value: https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.0/bootstrap-components.yaml
24+
- name: v1.1.4
25+
value: https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.4/bootstrap-components.yaml
2626
type: url
2727
files:
2828
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
@@ -34,8 +34,8 @@ providers:
3434
- name: kubeadm
3535
type: ControlPlaneProvider
3636
versions:
37-
- name: v1.1.0
38-
value: https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.0/control-plane-components.yaml
37+
- name: v1.1.4
38+
value: https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.4/control-plane-components.yaml
3939
type: url
4040
files:
4141
- sourcePath: "../data/shared/v1beta1/metadata.yaml"
@@ -73,7 +73,7 @@ providers:
7373
- sourcePath: "../data/infrastructure-oci/v1beta1/metadata.yaml"
7474

7575
variables:
76-
KUBERNETES_VERSION: "v1.22.5"
76+
KUBERNETES_VERSION: "v1.23.8"
7777
EXP_MACHINE_POOL: "true"
7878
EXP_CLUSTER_RESOURCE_SET: "true"
7979
NODE_DRAIN_TIMEOUT: "60s"
@@ -83,8 +83,8 @@ variables:
8383
CCM_PATH: "${PWD}/test/e2e/data/ccm/ccm.yaml"
8484
CONFORMANCE_WORKER_MACHINE_COUNT: "2"
8585
CONFORMANCE_CONTROL_PLANE_MACHINE_COUNT: "1"
86-
KUBERNETES_VERSION_UPGRADE_TO: "v1.23.1"
87-
KUBERNETES_VERSION_UPGRADE_FROM: "v1.22.5"
86+
KUBERNETES_VERSION_UPGRADE_TO: "v1.24.2"
87+
KUBERNETES_VERSION_UPGRADE_FROM: "v1.23.8"
8888
KUBERNETES_UPGRADE_OCI_IMAGE_ID: "${KUBERNETES_UPGRADE_OCI_IMAGE_ID}"
8989
IP_FAMILY: "IPv4"
9090
CLUSTER_TOPOLOGY: "true"
@@ -110,7 +110,7 @@ intervals:
110110
default/wait-control-plane-bare-metal: [ "60m", "10s" ]
111111
default/wait-worker-nodes-bare-metal: [ "60m", "10s" ]
112112
default/wait-delete-cluster: ["30m", "10s"]
113-
default/wait-machine-upgrade: ["60m", "10s"]
113+
default/wait-machine-upgrade: ["30m", "10s"]
114114
default/wait-machine-remediation: ["30m", "10s"]
115115
default/wait-deployment: ["15m", "10s"]
116116
default/wait-deployment-available: ["15m", "10s"]

test/e2e/data/ccm/ccm.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ spec:
4343
serviceAccountName: cloud-controller-manager
4444
hostNetwork: true
4545
nodeSelector:
46-
node-role.kubernetes.io/master: ""
46+
node-role.kubernetes.io/control-plane: ""
4747
tolerations:
4848
- key: node.cloudprovider.kubernetes.io/uninitialized
4949
value: "true"
5050
effect: NoSchedule
51+
- key: node-role.kubernetes.io/control-plane
52+
operator: Exists
53+
effect: NoSchedule
5154
- key: node-role.kubernetes.io/master
5255
operator: Exists
5356
effect: NoSchedule
@@ -266,7 +269,7 @@ spec:
266269
role: csi-oci
267270
spec:
268271
nodeSelector:
269-
node-role.kubernetes.io/master: ""
272+
node-role.kubernetes.io/control-plane: ""
270273
containers:
271274
- name: csi-volume-provisioner
272275
image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2

test/e2e/data/cni/antrea.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4379,7 +4379,7 @@ spec:
43794379
- key: CriticalAddonsOnly
43804380
operator: Exists
43814381
- effect: NoSchedule
4382-
key: node-role.kubernetes.io/master
4382+
key: node-role.kubernetes.io/control-plane
43834383
volumes:
43844384
- configMap:
43854385
name: antrea-config-ckdtm6hc68

test/e2e/data/cni/calico.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3706,7 +3706,7 @@ subjects:
37063706
# Source: calico/templates/calico-node.yaml
37073707
# This manifest installs the calico-node container, as well
37083708
# as the CNI plugins and network config on
3709-
# each master and worker node in a Kubernetes cluster.
3709+
# each control-plane and worker node in a Kubernetes cluster.
37103710
kind: DaemonSet
37113711
apiVersion: apps/v1
37123712
metadata:
@@ -4043,6 +4043,8 @@ spec:
40434043
operator: Exists
40444044
- key: node-role.kubernetes.io/master
40454045
effect: NoSchedule
4046+
- key: node-role.kubernetes.io/control-plane
4047+
effect: NoSchedule
40464048
serviceAccountName: calico-kube-controllers
40474049
priorityClassName: system-cluster-critical
40484050
containers:

0 commit comments

Comments
 (0)