Skip to content

Commit

Permalink
k8s: Adjust upgrade end to end tests
Browse files Browse the repository at this point in the history
Before 22.X the cluster health overview is not available. All tests could not
upgrade from 21.X as operator could validate the health status.
  • Loading branch information
Rafal Korepta committed Nov 29, 2022
1 parent addb1fa commit 7beaf40
Show file tree
Hide file tree
Showing 20 changed files with 47 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: centralized-configuration-upgrade
spec:
image: "vectorized/redpanda"
version: "v21.11.11"
version: "v22.1.10"
replicas: 2
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v21.11.16"
image: "vectorized/redpanda:v22.1.10"
status:
phase: "Running"
---
Expand All @@ -25,7 +25,7 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v21.11.16"
image: "vectorized/redpanda:v22.1.10"
status:
phase: "Running"
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: centralized-configuration-upgrade
spec:
image: "vectorized/redpanda"
version: "v21.11.16"
version: "v22.1.10"
replicas: 2
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: centralized-configuration-upgrade
spec:
image: "vectorized/redpanda"
version: "v22.2.7"
version: "v22.2.8"
replicas: 2
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ kind: Cluster
metadata:
name: update-image-cluster-and-node-port
status:
version: "v21.11.1"
version: "v22.1.10"
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ metadata:
name: update-image-cluster-and-node-port
spec:
image: "vectorized/redpanda"
version: "v21.11.1"
version: "v22.1.10"
replicas: 2
resources:
requests:
Expand Down
12 changes: 9 additions & 3 deletions src/go/k8s/tests/e2e/update-image-and-node-port/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v21.11.12"
image: "vectorized/redpanda:v22.2.8"
volumeMounts:
- mountPath: /etc/redpanda
name: config-dir
- mountPath: /scripts
name: hook-scripts-dir
- mountPath: /etc/redpanda/.bootstrap.yaml
name: configmap-dir
subPath: .bootstrap.yaml
- mountPath: /var/lib/redpanda/data
name: datadir
- mountPath: /var/lib/shadow-index-cache
Expand All @@ -38,12 +41,15 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v21.11.12"
image: "vectorized/redpanda:v22.2.8"
volumeMounts:
- mountPath: /etc/redpanda
name: config-dir
- mountPath: /scripts
name: hook-scripts-dir
- mountPath: /etc/redpanda/.bootstrap.yaml
name: configmap-dir
subPath: .bootstrap.yaml
- mountPath: /var/lib/redpanda/data
name: datadir
- mountPath: /var/lib/shadow-index-cache
Expand Down Expand Up @@ -90,4 +96,4 @@ kind: Cluster
metadata:
name: update-image-cluster-and-node-port
status:
version: "v21.11.12"
version: "v22.2.8"
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kind: Cluster
metadata:
name: update-image-cluster-and-node-port
spec:
version: "v21.11.12"
version: "v22.2.8"
cloudStorage:
enabled: true
accessKey: XXX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
containers:
- name: redpanda
image: vectorized/redpanda:v22.2.7
image: vectorized/redpanda:v22.3.4
status:
phase: "Running"

Expand All @@ -27,7 +27,7 @@ metadata:
spec:
containers:
- name: redpanda
image: vectorized/redpanda:v22.2.7
image: vectorized/redpanda:v22.3.4
status:
phase: "Running"

Expand All @@ -47,4 +47,4 @@ kind: Cluster
metadata:
name: update-image-cluster-and-node-port
status:
version: v22.2.7
version: v22.3.4
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: update-image-cluster-and-node-port
spec:
image: "vectorized/redpanda"
version: "v22.2.7"
version: "v22.3.4"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: up-img
spec:
image: "vectorized/redpanda"
version: "v21.11.1"
version: "v22.1.10"
replicas: 2
resources:
requests:
Expand Down
10 changes: 8 additions & 2 deletions src/go/k8s/tests/e2e/update-image-tls-client-auth/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v21.11.12"
image: "vectorized/redpanda:v22.2.8"
volumeMounts:
- mountPath: /etc/redpanda
name: config-dir
Expand All @@ -24,6 +24,9 @@ spec:
name: tlsadmincert
- mountPath: /etc/tls/certs/admin/ca
name: tlsadminca
- mountPath: /etc/redpanda/.bootstrap.yaml
name: configmap-dir
subPath: .bootstrap.yaml
- mountPath: /var/lib/redpanda/data
name: datadir
- mountPath: /var/lib/shadow-index-cache
Expand All @@ -42,7 +45,7 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v21.11.12"
image: "vectorized/redpanda:v22.2.8"
volumeMounts:
- mountPath: /etc/redpanda
name: config-dir
Expand All @@ -52,6 +55,9 @@ spec:
name: tlsadmincert
- mountPath: /etc/tls/certs/admin/ca
name: tlsadminca
- mountPath: /etc/redpanda/.bootstrap.yaml
name: configmap-dir
subPath: .bootstrap.yaml
- mountPath: /var/lib/redpanda/data
name: datadir
- mountPath: /var/lib/shadow-index-cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kind: Cluster
metadata:
name: up-img
spec:
version: "v21.11.12"
version: "v22.2.8"
cloudStorage:
enabled: true
accessKey: XXX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v22.2.7"
image: "vectorized/redpanda:v22.3.4"
status:
phase: "Running"

Expand All @@ -27,7 +27,7 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v22.2.7"
image: "vectorized/redpanda:v22.3.4"
status:
phase: "Running"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: up-img
spec:
image: "vectorized/redpanda"
version: "v22.2.7"
version: "v22.3.4"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: up-img
spec:
image: "vectorized/redpanda"
version: "v21.11.1"
version: "v22.1.10"
replicas: 2
resources:
requests:
Expand Down
10 changes: 8 additions & 2 deletions src/go/k8s/tests/e2e/update-image-tls/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v21.11.12"
image: "vectorized/redpanda:v22.2.8"
volumeMounts:
- mountPath: /etc/redpanda
name: config-dir
- mountPath: /scripts
name: hook-scripts-dir
- mountPath: /etc/tls/certs/admin
name: tlsadmincert
- mountPath: /etc/redpanda/.bootstrap.yaml
name: configmap-dir
subPath: .bootstrap.yaml
- mountPath: /var/lib/redpanda/data
name: datadir
- mountPath: /var/lib/shadow-index-cache
Expand All @@ -40,14 +43,17 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v21.11.12"
image: "vectorized/redpanda:v22.2.8"
volumeMounts:
- mountPath: /etc/redpanda
name: config-dir
- mountPath: /scripts
name: hook-scripts-dir
- mountPath: /etc/tls/certs/admin
name: tlsadmincert
- mountPath: /etc/redpanda/.bootstrap.yaml
name: configmap-dir
subPath: .bootstrap.yaml
- mountPath: /var/lib/redpanda/data
name: datadir
- mountPath: /var/lib/shadow-index-cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kind: Cluster
metadata:
name: up-img
spec:
version: "v21.11.12"
version: "v22.2.8"
cloudStorage:
enabled: true
accessKey: XXX
Expand Down
4 changes: 2 additions & 2 deletions src/go/k8s/tests/e2e/update-image-tls/02-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v22.2.7"
image: "vectorized/redpanda:v22.3.4"
status:
phase: "Running"

Expand All @@ -27,7 +27,7 @@ metadata:
spec:
containers:
- name: redpanda
image: "vectorized/redpanda:v22.2.7"
image: "vectorized/redpanda:v22.3.4"
status:
phase: "Running"

Expand Down
2 changes: 1 addition & 1 deletion src/go/k8s/tests/e2e/update-image-tls/02-new-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: up-img
spec:
image: "vectorized/redpanda"
version: "v22.2.7"
version: "v22.3.4"

0 comments on commit 7beaf40

Please sign in to comment.