Skip to content

Commit 47273bd

Browse files
committed
operator: move v1 nodepool tests to acceptance
This commit moves the v1 kuttl nodepool tests (aka with-flags) into the acceptance suite. It additionally adds a test case for the vectorized statefulset decommissioner which previously did not exist.
1 parent afad9cd commit 47273bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+571
-900
lines changed

.buildkite/testsuite.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -213,49 +213,4 @@ steps:
213213
context: kuttl-v1
214214
report-slowest: 10
215215
soft_fail: true
216-
- group: Kuttl-V1-Nodepools Tests
217-
key: kuttl-v1-nodepools
218-
steps:
219-
- agents:
220-
queue: k8s-m6id12xlarge
221-
command: ./ci/scripts/run-in-nix-docker.sh task ci:configure ci:test:kuttl-v1-nodepools
222-
env:
223-
LOG_LEVEL: trace
224-
OTLP_DIR: /work/artifacts
225-
OTLP_METRIC_INTERVAL: 5s
226-
key: kuttl-v1-nodepools-run
227-
label: Run Kuttl-V1-Nodepools Tests
228-
notify:
229-
- github_commit_status:
230-
context: Kuttl-V1-Nodepools Tests
231-
plugins:
232-
- github.com/seek-oss/aws-sm-buildkite-plugin#v2.3.2:
233-
json-to-env:
234-
- secret-id: sdlc/prod/buildkite/github_api_token
235-
- secret-id: sdlc/prod/buildkite/redpanda_sample_license
236-
- secret-id: sdlc/prod/buildkite/slack_vbot_token
237-
- https://[email protected]/redpanda-data/step-slack-notify-buildkite-plugin.git#main:
238-
channel_name: kubernetes-tests
239-
conditions:
240-
branches:
241-
- main
242-
failed: true
243-
message: ':cloud: Kuttl-V1-Nodepools Tests Job Failed'
244-
slack_token_env_var_name: SLACK_VBOT_TOKEN
245-
soft_fail: false
246-
timeout_in_minutes: 30
247-
- continue_on_failure: true
248-
wait: null
249-
- agents:
250-
queue: pipeline-uploader
251-
allow_dependency_failure: true
252-
command: ""
253-
key: kuttl-v1-nodepools-parse
254-
label: Parse and annotate Kuttl-V1-Nodepools Tests results
255-
plugins:
256-
- github.com/buildkite-plugins/junit-annotate-buildkite-plugin#v2.4.1:
257-
artifacts: work/operator/tests/_e2e_with_flags_artifacts/kuttl-report.xml
258-
context: kuttl-v1-nodepools
259-
report-slowest: 10
260-
soft_fail: true
261216

acceptance/features/helm-chart.feature

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,12 @@ Feature: Redpanda Helm Chart
2525
enabled: true
2626
decommissionAfter: 15s
2727
```
28-
# May not be required?
29-
# And Pods matching "app.kubernetes.io/instance=redpanda,app.kubernetes.io/name=foobar" are Ready
3028
When I stop the Node running Pod "bazquux-2"
29+
# Wait for the Pod to get evicted from the stopped node.
3130
And Pod "bazquux-2" is eventually Pending
32-
# This helps speed up the test and makes the following wait for Running to
33-
# be less likely to assert on a phantom Pod.
34-
# TODO: Something between these two steps is wrong. Pod transitions from
35-
# Pending -> Terminating. Seems like a race between manual deletion and eviction?
36-
# Maybe have the previous step block until the Node is actually registered as dead?
37-
# And I force delete Pod "bazquux-2"
31+
# Observe that it gets rescheduled.
3832
Then Pod "bazquux-2" will eventually be Running
33+
# And showcase that ghost brokers have been pruned.
3934
And kubectl exec -it "bazquux-0" "rpk redpanda admin brokers list | sed -E 's/\s+/ /gm' | cut -d ' ' -f 1,6" will eventually output:
4035
```
4136
ID MEMBERSHIP

0 commit comments

Comments
 (0)