-
Notifications
You must be signed in to change notification settings - Fork 47
auto-docs: Update K8s acceptance tests #1471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
vbotbuildovich
wants to merge
1
commit into
main
Choose a base branch
from
update-acceptance-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
90 changes: 90 additions & 0 deletions
90
modules/manage/examples/kubernetes/console-upgrades.feature
This file contains hidden or 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,90 @@ | ||
| @operator:none | ||
| Feature: Upgrading the operator with Console installed | ||
| @skip:gke @skip:aks @skip:eks | ||
| Scenario: Console v2 to v3 no warnings | ||
| Given I helm install "redpanda-operator" "redpanda/operator" --version v25.1.3 with values: | ||
| """ | ||
| """ | ||
| And I apply Kubernetes manifest: | ||
| """ | ||
| --- | ||
| apiVersion: cluster.redpanda.com/v1alpha2 | ||
| kind: Redpanda | ||
| metadata: | ||
| name: operator-console-upgrade | ||
| spec: | ||
| clusterSpec: | ||
| console: | ||
| # Old versions have broken chart rendering for the console stanza | ||
| # unless nameOverride is set due to mapping configmap values for | ||
| # both the console deployment and redpanda statefulset to the same | ||
| # name. Setting nameOverride to "broken" works around this. | ||
| nameOverride: broken | ||
| tls: | ||
| enabled: false | ||
| external: | ||
| enabled: false | ||
| statefulset: | ||
| replicas: 1 | ||
| sideCars: | ||
| image: | ||
| tag: dev | ||
| repository: localhost/redpanda-operator | ||
| """ | ||
| And cluster "operator-console-upgrade" is available | ||
| Then I can helm upgrade "redpanda-operator" "../operator/chart" with values: | ||
| """ | ||
| image: | ||
| tag: dev | ||
| repository: localhost/redpanda-operator | ||
| crds: | ||
| experimental: true | ||
| """ | ||
| And cluster "operator-console-upgrade" should be stable with 1 nodes | ||
| And the migrated console cluster "operator-console-upgrade" should have 0 warnings | ||
|
|
||
| @skip:gke @skip:aks @skip:eks | ||
| Scenario: Console v2 to v3 with warnings | ||
| Given I helm install "redpanda-operator" "redpanda/operator" --version v25.1.3 with values: | ||
| """ | ||
| """ | ||
| And I apply Kubernetes manifest: | ||
| """ | ||
| --- | ||
| apiVersion: cluster.redpanda.com/v1alpha2 | ||
| kind: Redpanda | ||
| metadata: | ||
| name: operator-console-upgrade-warnings | ||
| spec: | ||
| clusterSpec: | ||
| console: | ||
| nameOverride: broken | ||
| console: | ||
| roleBindings: | ||
| - roleName: admin | ||
| subjects: | ||
| - kind: group | ||
| provider: OIDC | ||
| name: devs | ||
| tls: | ||
| enabled: false | ||
| external: | ||
| enabled: false | ||
| statefulset: | ||
| replicas: 1 | ||
| sideCars: | ||
| image: | ||
| tag: dev | ||
| repository: localhost/redpanda-operator | ||
| """ | ||
| And cluster "operator-console-upgrade-warnings" is available | ||
| Then I can helm upgrade "redpanda-operator" "../operator/chart" with values: | ||
| """ | ||
| image: | ||
| tag: dev | ||
| repository: localhost/redpanda-operator | ||
| crds: | ||
| experimental: true | ||
| """ | ||
| And cluster "operator-console-upgrade-warnings" should be stable with 1 nodes | ||
| And the migrated console cluster "operator-console-upgrade-warnings" should have 1 warning |
This file contains hidden or 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 hidden or 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,47 @@ | ||
| Feature: Upgrading redpanda | ||
| @skip:gke @skip:aks @skip:eks @skip:k3d | ||
| Scenario: Redpanda upgrade from 25.2.11 | ||
| Given I apply Kubernetes manifest: | ||
| """ | ||
| --- | ||
| apiVersion: cluster.redpanda.com/v1alpha2 | ||
| kind: Redpanda | ||
| metadata: | ||
| name: cluster-upgrade | ||
| spec: | ||
| clusterSpec: | ||
| image: | ||
| repository: redpandadata/redpanda | ||
| tag: v25.2.11 | ||
| console: | ||
| enabled: false | ||
| statefulset: | ||
| replicas: 3 | ||
| sideCars: | ||
| image: | ||
| tag: dev | ||
| repository: localhost/redpanda-operator | ||
| """ | ||
| And cluster "cluster-upgrade" should be stable with 3 nodes | ||
| Then I apply Kubernetes manifest: | ||
| """ | ||
| --- | ||
| apiVersion: cluster.redpanda.com/v1alpha2 | ||
| kind: Redpanda | ||
| metadata: | ||
| name: cluster-upgrade | ||
| spec: | ||
| clusterSpec: | ||
| image: | ||
| repository: redpandadata/redpanda-unstable | ||
| tag: v25.3.1-rc4 | ||
| console: | ||
| enabled: false | ||
| statefulset: | ||
| replicas: 3 | ||
| sideCars: | ||
| image: | ||
| tag: dev | ||
| repository: localhost/redpanda-operator | ||
| """ | ||
| And cluster "cluster-upgrade" should be stable with 3 nodes | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify the skip tags are appropriate for a documentation example.
The scenario skips all major cloud-managed Kubernetes environments (GKE, AKS, EKS) and K3D. If this test is intended as a documentation example for users, they may attempt to follow it on these platforms. Ensure these skip tags align with actual platform limitations or move this to a non-example location if it's only for internal testing.
Run the following script to check if there are other upgrade examples without these restrictions:
🏁 Script executed:
Length of output: 194
🏁 Script executed:
Length of output: 1208
🏁 Script executed:
Length of output: 1661
Remove or document the @Skip:k3d tag—it's inconsistent with similar feature files.
The gke/aks/eks skip tags are consistently applied across all example feature files, but upgrade.feature is the only one that additionally skips k3d. No documentation explains this k3d-specific limitation. Either remove this skip tag to align with operator-upgrades.feature and cluster.feature, or add a comment explaining why upgrades specifically require k3d to be skipped.
🤖 Prompt for AI Agents