forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(split) operator: mark downscaling as alpha feature and add a startup…
… flag We should enable downscaling as feature gate when issue with reusable node IDs is fixed.
- Loading branch information
1 parent
504089b
commit 0e0e982
Showing
14 changed files
with
106 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,6 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
# Set the --allow-downscaling=true parameter in the controller manager | ||
- command: kubectl patch deployment redpanda-controller-manager -n redpanda-system --type='json' -p='[{"op":"add", "path":"/spec/template/spec/containers/1/args/-", "value":"--allow-downscaling=true"}]' | ||
- command: kubectl get deployment redpanda-controller-manager -n redpanda-system -o json |
This file contains 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
File renamed without changes.
This file contains 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
File renamed without changes.
This file contains 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
File renamed without changes.
This file contains 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,29 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
job-name: wait-for-2-brokers | ||
status: | ||
containerStatuses: | ||
- name: curl | ||
state: | ||
terminated: | ||
message: | | ||
2 | ||
phase: Succeeded | ||
--- | ||
|
||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
collectors: | ||
- type: pod | ||
selector: app.kubernetes.io/name=redpanda | ||
tail: -1 | ||
- type: pod | ||
namespace: redpanda-system | ||
selector: control-plane=controller-manager | ||
tail: -1 | ||
- type: command | ||
command: kubectl get clusters -o jsonpath={@} -n $NAMESPACE | ||
- type: command | ||
command: kubectl get pods -o jsonpath={@} -n $NAMESPACE |
File renamed without changes.
This file contains 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,5 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
# Downscaling will be set to the default value | ||
- command: kubectl patch deployment redpanda-controller-manager -n redpanda-system --type='json' -p='[{"op":"remove", "path":"/spec/template/spec/containers/1/args/4"}]' |
This file contains 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,22 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
commands: | ||
- command: kubectl rollout status deployment redpanda-controller-manager -n redpanda-system | ||
- command: hack/wait-for-webhook-ready.sh | ||
|
||
--- | ||
|
||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
collectors: | ||
- type: pod | ||
selector: app.kubernetes.io/name=redpanda | ||
tail: -1 | ||
- type: pod | ||
namespace: redpanda-system | ||
selector: control-plane=controller-manager | ||
tail: -1 | ||
- type: command | ||
command: kubectl get clusters -o jsonpath={@} -n $NAMESPACE | ||
- type: command | ||
command: kubectl get pods -o jsonpath={@} -n $NAMESPACE |