Skip to content

Commit 721ec47

Browse files
PVS e2e related changes (#1072)
Signed-off-by: Prajyot-Parab <[email protected]>
1 parent 1652c0b commit 721ec47

File tree

7 files changed

+42
-7
lines changed

7 files changed

+42
-7
lines changed

scripts/ci-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ OS=$(uname -s)
3939
IBMCLOUD_CLI_VERSION=${IBMCLOUD_CLI_VERSION:-"2.13.0"}
4040
PVSADM_VERSION=${PVSADM_VERSION:-"v0.1.9"}
4141
E2E_FLAVOR=${E2E_FLAVOR:-}
42-
REGION=${REGION:-"us-south"}
42+
REGION=${REGION:-"jp-osa"}
4343

4444
[ "${ARCH}" == "x86_64" ] && ARCH="amd64"
4545

templates/cluster-template-powervs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ kind: KubeadmConfigTemplate
216216
metadata:
217217
labels:
218218
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
219-
cluster.x-k8s.io/control-plane: ""
220219
name: "${CLUSTER_NAME}-md-0"
221220
spec:
222221
template:

test/e2e/config/ibmcloud-e2e-powervs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ variables:
6060
intervals:
6161
default/wait-controllers: ["3m", "10s"]
6262
default/wait-cluster: ["20m", "10s"]
63-
default/wait-control-plane: ["30m", "10s"]
64-
default/wait-worker-nodes: ["30m", "10s"]
63+
default/wait-control-plane: ["60m", "10s"]
64+
default/wait-worker-nodes: ["60m", "10s"]
6565
default/wait-delete-cluster: ["20m", "10s"]
6666
default/wait-machine-upgrade: ["50m", "10s"]
6767
default/wait-machine-remediation: ["30m", "10s"]

test/e2e/data/templates/cluster-template-powervs-md-remediation/kustomization.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
44
- ../../../../../templates/cluster-template-powervs.yaml
5-
- mhc-powervs.yaml
5+
- mhc-md-powervs.yaml
6+
- mhc-kcp-powervs.yaml
7+
patchesStrategicMerge:
8+
- patches/mhc-label.yaml
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: cluster.x-k8s.io/v1beta1
2+
kind: MachineHealthCheck
3+
metadata:
4+
name: "${CLUSTER_NAME}-mhc-kcp"
5+
spec:
6+
clusterName: "${CLUSTER_NAME}"
7+
maxUnhealthy: 100%
8+
nodeStartupTimeout: 0m
9+
selector:
10+
matchLabels:
11+
cluster.x-k8s.io/control-plane: ""
12+
unhealthyConditions:
13+
- type: Ready
14+
status: "False"
15+
timeout: 60s
16+
- type: Ready
17+
status: Unknown
18+
timeout: 60s

test/e2e/data/templates/cluster-template-powervs-md-remediation/mhc-powervs.yaml renamed to test/e2e/data/templates/cluster-template-powervs-md-remediation/mhc-md-powervs.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: cluster.x-k8s.io/v1beta1
22
kind: MachineHealthCheck
33
metadata:
4-
name: "${CLUSTER_NAME}-mhc-0"
4+
name: "${CLUSTER_NAME}-mhc-md"
55
spec:
66
clusterName: "${CLUSTER_NAME}"
77
maxUnhealthy: 100%
@@ -12,4 +12,7 @@ spec:
1212
unhealthyConditions:
1313
- type: Ready
1414
status: "False"
15-
timeout: 30s
15+
timeout: 60s
16+
- type: Ready
17+
status: Unknown
18+
timeout: 60s
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
apiVersion: cluster.x-k8s.io/v1beta1
3+
kind: MachineDeployment
4+
metadata:
5+
name: "${CLUSTER_NAME}-md-0"
6+
spec:
7+
selector:
8+
matchLabels:
9+
template:
10+
metadata:
11+
labels:
12+
"e2e.remediation.label": ""

0 commit comments

Comments
 (0)