diff --git a/operator/params.yaml b/operator/params.yaml index cf034989..e272e458 100644 --- a/operator/params.yaml +++ b/operator/params.yaml @@ -864,3 +864,7 @@ parameters: - name: CUSTOM_JVM_OPTIONS_BASE64 description: "Base64-encoded JVM options appended to jvm.options." default: "" + + - name: POD_MANAGEMENT_POLICY + description: "podManagementPolicy of the Cassandra Statefulset" + default: "OrderedReady" diff --git a/operator/templates/stateful-set.yaml b/operator/templates/stateful-set.yaml index f41d4e4f..da3385c6 100644 --- a/operator/templates/stateful-set.yaml +++ b/operator/templates/stateful-set.yaml @@ -29,6 +29,7 @@ spec: {{ else }} replicas: {{ $.Params.NODE_COUNT }} {{ end }} + podManagementPolicy: {{ $.Params.POD_MANAGEMENT_POLICY }} template: metadata: labels: diff --git a/templates/operator/params.yaml.template b/templates/operator/params.yaml.template index 8a03f6d3..16e4dbb6 100644 --- a/templates/operator/params.yaml.template +++ b/templates/operator/params.yaml.template @@ -864,3 +864,7 @@ parameters: - name: CUSTOM_JVM_OPTIONS_BASE64 description: "Base64-encoded JVM options appended to jvm.options." default: "" + + - name: POD_MANAGEMENT_POLICY + description: "podManagementPolicy of the Cassandra Statefulset" + default: "OrderedReady" diff --git a/templates/operator/templates/stateful-set.yaml.template b/templates/operator/templates/stateful-set.yaml.template index f41d4e4f..da3385c6 100644 --- a/templates/operator/templates/stateful-set.yaml.template +++ b/templates/operator/templates/stateful-set.yaml.template @@ -29,6 +29,7 @@ spec: {{ else }} replicas: {{ $.Params.NODE_COUNT }} {{ end }} + podManagementPolicy: {{ $.Params.POD_MANAGEMENT_POLICY }} template: metadata: labels: