diff --git a/charts/camunda-platform-8.2/charts/zeebe/templates/statefulset.yaml b/charts/camunda-platform-8.2/charts/zeebe/templates/statefulset.yaml index ad757f80d6..a1fa96d07c 100644 --- a/charts/camunda-platform-8.2/charts/zeebe/templates/statefulset.yaml +++ b/charts/camunda-platform-8.2/charts/zeebe/templates/statefulset.yaml @@ -212,7 +212,18 @@ spec: name: data spec: accessModes: {{ .Values.pvcAccessModes }} + {{- if .Values.pvcStorageClassName }} + {{- if (eq "-" .Values.pvcStorageClassName) }} + storageClassName: "" + {{- else }} storageClassName: {{ .Values.pvcStorageClassName }} + {{- end }} + {{- end }} + {{- if .Values.pvcSelector }} + {{- with .Values.pvcSelector }} + selector: {{ toYaml . | nindent 10 }} + {{- end }} + {{- end }} resources: requests: storage: {{ .Values.pvcSize | quote }} diff --git a/charts/camunda-platform-8.2/test/unit/zeebe/golden/statefulset.golden.yaml b/charts/camunda-platform-8.2/test/unit/zeebe/golden/statefulset.golden.yaml index 6a69b8c76b..2bc4c85af8 100644 --- a/charts/camunda-platform-8.2/test/unit/zeebe/golden/statefulset.golden.yaml +++ b/charts/camunda-platform-8.2/test/unit/zeebe/golden/statefulset.golden.yaml @@ -162,7 +162,6 @@ spec: name: data spec: accessModes: [ReadWriteOnce] - storageClassName: resources: requests: storage: "32Gi" \ No newline at end of file diff --git a/charts/camunda-platform-8.2/values.yaml b/charts/camunda-platform-8.2/values.yaml index 0cdc27b144..dbc7876b1c 100644 --- a/charts/camunda-platform-8.2/values.yaml +++ b/charts/camunda-platform-8.2/values.yaml @@ -302,9 +302,12 @@ zeebe: pvcSize: "32Gi" # PvcAccessModes can be used to configure the persistent volume claim access mode https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes pvcAccessModes: ["ReadWriteOnce"] - # PvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. It is recommended to use a storage class, which is backed with a SSD. + ## @param zeebe.pvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. + # It is recommended to use a storage class, which is backed with a SSD. Set to "-" to disable use of default storage class. pvcStorageClassName: '' - + ## @param zeebe.pvcSelector can be used to specify a label selector for Zeebe's persistent volume claims for further filtering of the set of persistent volumes to select. + # https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector + pvcSelector: {} # ExtraVolumes can be used to define extra volumes for the broker pods, useful for additional exporters extraVolumes: [] # ExtraVolumeMounts can be used to mount extra volumes for the broker pods, useful for additional exporters diff --git a/charts/camunda-platform-8.3/README.md b/charts/camunda-platform-8.3/README.md index 10a357ab99..94c4a1d5c3 100644 --- a/charts/camunda-platform-8.3/README.md +++ b/charts/camunda-platform-8.3/README.md @@ -533,7 +533,8 @@ Please see the corresponding [release guide](../../RELEASE.md) to find out how t | `zeebe.persistenceType` | defines the type of persistence which is used by Zeebe. Possible values are: disk, local and memory. | `disk` | | `zeebe.pvcSize` | defines the persistent volume claim size, which is used by each broker pod https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims | `32Gi` | | `zeebe.pvcAccessModes` | can be used to configure the persistent volume claim access mode https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes | `["ReadWriteOnce"]` | -| `zeebe.pvcStorageClassName` | can be used to set the storage class name which should be used by the persistent volume claim. It is recommended to use a storage class, which is backed with a SSD. | `""` | +| `zeebe.pvcStorageClassName` | can be used to set the storage class name which should be used by the persistent volume claim. | `""` | +| `zeebe.pvcSelector` | can be used to specify a label selector for Zeebe's persistent volume claims for further filtering of the set of persistent volumes to select. | `{}` | | `zeebe.extraVolumes` | can be used to define extra volumes for the broker pods, useful for additional exporters | `[]` | | `zeebe.extraVolumeMounts` | can be used to mount extra volumes for the broker pods, useful for additional exporters | `[]` | | `zeebe.extraInitContainers` | (Deprecated - use `initContainers` instead) ExtraInitContainers can be used to set up extra init containers for the broker pods, useful for additional exporters | `[]` | diff --git a/charts/camunda-platform-8.3/templates/zeebe/statefulset.yaml b/charts/camunda-platform-8.3/templates/zeebe/statefulset.yaml index 60855c5430..ebeb4d5c50 100644 --- a/charts/camunda-platform-8.3/templates/zeebe/statefulset.yaml +++ b/charts/camunda-platform-8.3/templates/zeebe/statefulset.yaml @@ -232,8 +232,17 @@ spec: spec: accessModes: {{ .Values.zeebe.pvcAccessModes }} {{- if .Values.zeebe.pvcStorageClassName }} + {{- if (eq "-" .Values.zeebe.pvcStorageClassName) }} + storageClassName: "" + {{- else }} storageClassName: {{ .Values.zeebe.pvcStorageClassName }} {{- end }} + {{- end }} + {{- if .Values.zeebe.pvcSelector }} + {{- with .Values.zeebe.pvcSelector }} + selector: {{ toYaml . | nindent 10 }} + {{- end }} + {{- end }} resources: requests: storage: {{ .Values.zeebe.pvcSize | quote }} diff --git a/charts/camunda-platform-8.3/values.yaml b/charts/camunda-platform-8.3/values.yaml index 457fd23599..4809a403f2 100644 --- a/charts/camunda-platform-8.3/values.yaml +++ b/charts/camunda-platform-8.3/values.yaml @@ -350,9 +350,12 @@ zeebe: pvcSize: "32Gi" ## @param zeebe.pvcAccessModes can be used to configure the persistent volume claim access mode https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes pvcAccessModes: ["ReadWriteOnce"] - ## @param zeebe.pvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. It is recommended to use a storage class, which is backed with a SSD. + ## @param zeebe.pvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. + # It is recommended to use a storage class, which is backed with a SSD. Set to "-" to disable use of default storage class. pvcStorageClassName: '' - + ## @param zeebe.pvcSelector can be used to specify a label selector for Zeebe's persistent volume claims for further filtering of the set of persistent volumes to select. + # https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector + pvcSelector: {} ## @param zeebe.extraVolumes can be used to define extra volumes for the broker pods, useful for additional exporters extraVolumes: [] ## @param zeebe.extraVolumeMounts can be used to mount extra volumes for the broker pods, useful for additional exporters diff --git a/charts/camunda-platform-8.4/README.md b/charts/camunda-platform-8.4/README.md index 7b5c66c264..81aaecd0e9 100644 --- a/charts/camunda-platform-8.4/README.md +++ b/charts/camunda-platform-8.4/README.md @@ -628,8 +628,9 @@ Please see the corresponding [release guide](../../RELEASE.md) to find out how t | `zeebe.persistenceType` | defines the type of persistence which is used by Zeebe. Possible values are: disk, local and memory. | `disk` | | `zeebe.pvcSize` | defines the persistent volume claim size, which is used by each broker pod https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims | `32Gi` | | `zeebe.pvcAccessModes` | can be used to configure the persistent volume claim access mode https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes | `["ReadWriteOnce"]` | -| `zeebe.pvcStorageClassName` | can be used to set the storage class name which should be used by the persistent volume claim. It is recommended to use a storage class, which is backed with a SSD. | `""` | +| `zeebe.pvcStorageClassName` | can be used to set the storage class name which should be used by the persistent volume claim. | `""` | | `zeebe.pvcAnnotations` | can be used to specify custom annotations for Zeebe's persistent volume claims, enhancing storage configuration flexibility. | `{}` | +| `zeebe.pvcSelector` | can be used to specify a label selector for Zeebe's persistent volume claims for further filtering of the set of persistent volumes to select. | `{}` | | `zeebe.extraVolumes` | can be used to define extra volumes for the broker pods, useful for additional exporters | `[]` | | `zeebe.extraVolumeMounts` | can be used to mount extra volumes for the broker pods, useful for additional exporters | `[]` | | `zeebe.extraInitContainers` | (Deprecated - use `initContainers` instead) ExtraInitContainers can be used to set up extra init containers for the broker pods, useful for additional exporters | `[]` | diff --git a/charts/camunda-platform-8.4/templates/zeebe/statefulset.yaml b/charts/camunda-platform-8.4/templates/zeebe/statefulset.yaml index 1a5e4bfbb0..0fcd6c9b93 100644 --- a/charts/camunda-platform-8.4/templates/zeebe/statefulset.yaml +++ b/charts/camunda-platform-8.4/templates/zeebe/statefulset.yaml @@ -234,8 +234,17 @@ spec: spec: accessModes: {{ .Values.zeebe.pvcAccessModes }} {{- if .Values.zeebe.pvcStorageClassName }} + {{- if (eq "-" .Values.zeebe.pvcStorageClassName) }} + storageClassName: "" + {{- else }} storageClassName: {{ .Values.zeebe.pvcStorageClassName }} {{- end }} + {{- end }} + {{- if .Values.zeebe.pvcSelector }} + {{- with .Values.zeebe.pvcSelector }} + selector: {{ toYaml . | nindent 10 }} + {{- end }} + {{- end }} resources: requests: storage: {{ .Values.zeebe.pvcSize | quote }} diff --git a/charts/camunda-platform-8.4/values.yaml b/charts/camunda-platform-8.4/values.yaml index c8d83bf283..bed6e7ebf4 100644 --- a/charts/camunda-platform-8.4/values.yaml +++ b/charts/camunda-platform-8.4/values.yaml @@ -633,10 +633,14 @@ zeebe: pvcSize: "32Gi" ## @param zeebe.pvcAccessModes can be used to configure the persistent volume claim access mode https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes pvcAccessModes: ["ReadWriteOnce"] - ## @param zeebe.pvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. It is recommended to use a storage class, which is backed with a SSD. + ## @param zeebe.pvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. + # It is recommended to use a storage class, which is backed with a SSD. Set to "-" to disable use of default storage class. pvcStorageClassName: '' ## @param zeebe.pvcAnnotations can be used to specify custom annotations for Zeebe's persistent volume claims, enhancing storage configuration flexibility. pvcAnnotations: {} + ## @param zeebe.pvcSelector can be used to specify a label selector for Zeebe's persistent volume claims for further filtering of the set of persistent volumes to select. + # https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector + pvcSelector: {} ## @param zeebe.extraVolumes can be used to define extra volumes for the broker pods, useful for additional exporters extraVolumes: [] ## @param zeebe.extraVolumeMounts can be used to mount extra volumes for the broker pods, useful for additional exporters diff --git a/charts/camunda-platform-alpha/README.md b/charts/camunda-platform-alpha/README.md index eb2d1ca7c1..2104fe5220 100644 --- a/charts/camunda-platform-alpha/README.md +++ b/charts/camunda-platform-alpha/README.md @@ -657,8 +657,9 @@ Please see the corresponding [release guide](../../docs/release.md) to find out | `zeebe.persistenceType` | defines the type of persistence which is used by Zeebe. Possible values are: disk, local and memory. | `disk` | | `zeebe.pvcSize` | defines the persistent volume claim size, which is used by each broker pod https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims | `32Gi` | | `zeebe.pvcAccessModes` | can be used to configure the persistent volume claim access mode https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes | `["ReadWriteOnce"]` | -| `zeebe.pvcStorageClassName` | can be used to set the storage class name which should be used by the persistent volume claim. It is recommended to use a storage class, which is backed with a SSD. | `""` | +| `zeebe.pvcStorageClassName` | can be used to set the storage class name which should be used by the persistent volume claim. | `""` | | `zeebe.pvcAnnotations` | can be used to specify custom annotations for Zeebe's persistent volume claims, enhancing storage configuration flexibility. | `{}` | +| `zeebe.pvcSelector` | can be used to specify a label selector for Zeebe's persistent volume claims for further filtering of the set of persistent volumes to select. | `{}` | | `zeebe.extraVolumes` | can be used to define extra volumes for the broker pods, useful for additional exporters | `[]` | | `zeebe.extraVolumeMounts` | can be used to mount extra volumes for the broker pods, useful for additional exporters | `[]` | | `zeebe.extraInitContainers` | (Deprecated - use `initContainers` instead) ExtraInitContainers can be used to set up extra init containers for the broker pods, useful for additional exporters | `[]` | diff --git a/charts/camunda-platform-alpha/templates/zeebe/statefulset.yaml b/charts/camunda-platform-alpha/templates/zeebe/statefulset.yaml index 52da4f0466..0c457085b9 100644 --- a/charts/camunda-platform-alpha/templates/zeebe/statefulset.yaml +++ b/charts/camunda-platform-alpha/templates/zeebe/statefulset.yaml @@ -266,8 +266,17 @@ spec: spec: accessModes: {{ .Values.zeebe.pvcAccessModes }} {{- if .Values.zeebe.pvcStorageClassName }} + {{- if (eq "-" .Values.zeebe.pvcStorageClassName) }} + storageClassName: "" + {{- else }} storageClassName: {{ .Values.zeebe.pvcStorageClassName }} {{- end }} + {{- end }} + {{- if .Values.zeebe.pvcSelector }} + {{- with .Values.zeebe.pvcSelector }} + selector: {{ toYaml . | nindent 10 }} + {{- end }} + {{- end }} resources: requests: storage: {{ .Values.zeebe.pvcSize | quote }} diff --git a/charts/camunda-platform-alpha/values.yaml b/charts/camunda-platform-alpha/values.yaml index be01210044..134747ec1f 100644 --- a/charts/camunda-platform-alpha/values.yaml +++ b/charts/camunda-platform-alpha/values.yaml @@ -720,10 +720,14 @@ zeebe: pvcSize: "32Gi" ## @param zeebe.pvcAccessModes can be used to configure the persistent volume claim access mode https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes pvcAccessModes: ["ReadWriteOnce"] - ## @param zeebe.pvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. It is recommended to use a storage class, which is backed with a SSD. + ## @param zeebe.pvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. + # It is recommended to use a storage class, which is backed with a SSD. Set to "-" to disable use of default storage class. pvcStorageClassName: '' ## @param zeebe.pvcAnnotations can be used to specify custom annotations for Zeebe's persistent volume claims, enhancing storage configuration flexibility. pvcAnnotations: {} + ## @param zeebe.pvcSelector can be used to specify a label selector for Zeebe's persistent volume claims for further filtering of the set of persistent volumes to select. + # https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector + pvcSelector: {} ## @param zeebe.extraVolumes can be used to define extra volumes for the broker pods, useful for additional exporters extraVolumes: [] ## @param zeebe.extraVolumeMounts can be used to mount extra volumes for the broker pods, useful for additional exporters diff --git a/charts/camunda-platform-latest/README.md b/charts/camunda-platform-latest/README.md index 9b3cbcdcc6..c0a77aa250 100644 --- a/charts/camunda-platform-latest/README.md +++ b/charts/camunda-platform-latest/README.md @@ -669,8 +669,9 @@ Please see the corresponding [release guide](../../docs/release.md) to find out | `zeebe.persistenceType` | defines the type of persistence which is used by Zeebe. Possible values are: disk, local and memory. | `disk` | | `zeebe.pvcSize` | defines the persistent volume claim size, which is used by each broker pod https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims | `32Gi` | | `zeebe.pvcAccessModes` | can be used to configure the persistent volume claim access mode https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes | `["ReadWriteOnce"]` | -| `zeebe.pvcStorageClassName` | can be used to set the storage class name which should be used by the persistent volume claim. It is recommended to use a storage class, which is backed with a SSD. | `""` | +| `zeebe.pvcStorageClassName` | can be used to set the storage class name which should be used by the persistent volume claim. | `""` | | `zeebe.pvcAnnotations` | can be used to specify custom annotations for Zeebe's persistent volume claims, enhancing storage configuration flexibility. | `{}` | +| `zeebe.pvcSelector` | can be used to specify a label selector for Zeebe's persistent volume claims for further filtering of the set of persistent volumes to select. | `{}` | | `zeebe.extraVolumes` | can be used to define extra volumes for the broker pods, useful for additional exporters | `[]` | | `zeebe.extraVolumeMounts` | can be used to mount extra volumes for the broker pods, useful for additional exporters | `[]` | | `zeebe.extraInitContainers` | (Deprecated - use `initContainers` instead) ExtraInitContainers can be used to set up extra init containers for the broker pods, useful for additional exporters | `[]` | diff --git a/charts/camunda-platform-latest/templates/zeebe/statefulset.yaml b/charts/camunda-platform-latest/templates/zeebe/statefulset.yaml index e02b3b4535..03d221e2b7 100644 --- a/charts/camunda-platform-latest/templates/zeebe/statefulset.yaml +++ b/charts/camunda-platform-latest/templates/zeebe/statefulset.yaml @@ -261,8 +261,17 @@ spec: spec: accessModes: {{ .Values.zeebe.pvcAccessModes }} {{- if .Values.zeebe.pvcStorageClassName }} + {{- if (eq "-" .Values.zeebe.pvcStorageClassName) }} + storageClassName: "" + {{- else }} storageClassName: {{ .Values.zeebe.pvcStorageClassName }} {{- end }} + {{- end }} + {{- if .Values.zeebe.pvcSelector }} + {{- with .Values.zeebe.pvcSelector }} + selector: {{ toYaml . | nindent 10 }} + {{- end }} + {{- end }} resources: requests: storage: {{ .Values.zeebe.pvcSize | quote }} diff --git a/charts/camunda-platform-latest/values.yaml b/charts/camunda-platform-latest/values.yaml index 0a132e77d6..2a23111bb8 100644 --- a/charts/camunda-platform-latest/values.yaml +++ b/charts/camunda-platform-latest/values.yaml @@ -710,10 +710,14 @@ zeebe: pvcSize: "32Gi" ## @param zeebe.pvcAccessModes can be used to configure the persistent volume claim access mode https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes pvcAccessModes: ["ReadWriteOnce"] - ## @param zeebe.pvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. It is recommended to use a storage class, which is backed with a SSD. + ## @param zeebe.pvcStorageClassName can be used to set the storage class name which should be used by the persistent volume claim. + # It is recommended to use a storage class, which is backed with a SSD. Set to "-" to disable use of default storage class. pvcStorageClassName: '' ## @param zeebe.pvcAnnotations can be used to specify custom annotations for Zeebe's persistent volume claims, enhancing storage configuration flexibility. pvcAnnotations: {} + ## @param zeebe.pvcSelector can be used to specify a label selector for Zeebe's persistent volume claims for further filtering of the set of persistent volumes to select. + # https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector + pvcSelector: {} ## @param zeebe.extraVolumes can be used to define extra volumes for the broker pods, useful for additional exporters extraVolumes: [] ## @param zeebe.extraVolumeMounts can be used to mount extra volumes for the broker pods, useful for additional exporters