Skip to content

Commit 6726deb

Browse files
vbotbuildovichgithub-actions[bot]
authored andcommitted
auto-docs: Update K8s acceptance tests
1 parent 328b1f2 commit 6726deb

File tree

2 files changed

+137
-0
lines changed

2 files changed

+137
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
@operator:none
2+
Feature: Upgrading the operator with Console installed
3+
@skip:gke @skip:aks @skip:eks
4+
Scenario: Console v2 to v3 no warnings
5+
Given I helm install "redpanda-operator" "redpanda/operator" --version v25.1.3 with values:
6+
"""
7+
"""
8+
And I apply Kubernetes manifest:
9+
"""
10+
---
11+
apiVersion: cluster.redpanda.com/v1alpha2
12+
kind: Redpanda
13+
metadata:
14+
name: operator-console-upgrade
15+
spec:
16+
clusterSpec:
17+
console:
18+
# Old versions have broken chart rendering for the console stanza
19+
# unless nameOverride is set due to mapping configmap values for
20+
# both the console deployment and redpanda statefulset to the same
21+
# name. Setting nameOverride to "broken" works around this.
22+
nameOverride: broken
23+
tls:
24+
enabled: false
25+
external:
26+
enabled: false
27+
statefulset:
28+
replicas: 1
29+
sideCars:
30+
image:
31+
tag: dev
32+
repository: localhost/redpanda-operator
33+
"""
34+
And cluster "operator-console-upgrade" is available
35+
Then I can helm upgrade "redpanda-operator" "../operator/chart" with values:
36+
"""
37+
image:
38+
tag: dev
39+
repository: localhost/redpanda-operator
40+
crds:
41+
experimental: true
42+
"""
43+
And cluster "operator-console-upgrade" should be stable with 1 nodes
44+
And the migrated console cluster "operator-console-upgrade" should have 0 warnings
45+
46+
@skip:gke @skip:aks @skip:eks
47+
Scenario: Console v2 to v3 with warnings
48+
Given I helm install "redpanda-operator" "redpanda/operator" --version v25.1.3 with values:
49+
"""
50+
"""
51+
And I apply Kubernetes manifest:
52+
"""
53+
---
54+
apiVersion: cluster.redpanda.com/v1alpha2
55+
kind: Redpanda
56+
metadata:
57+
name: operator-console-upgrade-warnings
58+
spec:
59+
clusterSpec:
60+
console:
61+
nameOverride: broken
62+
console:
63+
roleBindings:
64+
- roleName: admin
65+
subjects:
66+
- kind: group
67+
provider: OIDC
68+
name: devs
69+
tls:
70+
enabled: false
71+
external:
72+
enabled: false
73+
statefulset:
74+
replicas: 1
75+
sideCars:
76+
image:
77+
tag: dev
78+
repository: localhost/redpanda-operator
79+
"""
80+
And cluster "operator-console-upgrade-warnings" is available
81+
Then I can helm upgrade "redpanda-operator" "../operator/chart" with values:
82+
"""
83+
image:
84+
tag: dev
85+
repository: localhost/redpanda-operator
86+
crds:
87+
experimental: true
88+
"""
89+
And cluster "operator-console-upgrade-warnings" should be stable with 1 nodes
90+
And the migrated console cluster "operator-console-upgrade-warnings" should have 1 warning
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Feature: Upgrading redpanda
2+
@skip:gke @skip:aks @skip:eks @skip:k3d
3+
Scenario: Redpanda upgrade from 25.2.11
4+
Given I apply Kubernetes manifest:
5+
"""
6+
---
7+
apiVersion: cluster.redpanda.com/v1alpha2
8+
kind: Redpanda
9+
metadata:
10+
name: cluster-upgrade
11+
spec:
12+
clusterSpec:
13+
image:
14+
repository: redpandadata/redpanda
15+
tag: v25.2.11
16+
console:
17+
enabled: false
18+
statefulset:
19+
replicas: 3
20+
sideCars:
21+
image:
22+
tag: dev
23+
repository: localhost/redpanda-operator
24+
"""
25+
And cluster "cluster-upgrade" should be stable with 3 nodes
26+
Then I apply Kubernetes manifest:
27+
"""
28+
---
29+
apiVersion: cluster.redpanda.com/v1alpha2
30+
kind: Redpanda
31+
metadata:
32+
name: cluster-upgrade
33+
spec:
34+
clusterSpec:
35+
image:
36+
repository: redpandadata/redpanda-unstable
37+
tag: v25.3.1-rc4
38+
console:
39+
enabled: false
40+
statefulset:
41+
replicas: 3
42+
sideCars:
43+
image:
44+
tag: dev
45+
repository: localhost/redpanda-operator
46+
"""
47+
And cluster "cluster-upgrade" should be stable with 3 nodes

0 commit comments

Comments
 (0)