mirror of
https://github.com/bitnami/charts.git
synced 2026-03-10 15:07:49 +08:00
[bitnami/cassandra] feat: ✨ Allow setting initdb scripts in values (#29172)
* [bitnami/cassandra] feat: ✨ Allow setting initdb scripts in values Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * fix: 🐛 Use correct type Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com> --------- Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
committed by
GitHub
parent
4c05231bd7
commit
0aaac20954
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 11.3.14 (2024-08-28)
|
||||
## 11.4.0 (2024-09-03)
|
||||
|
||||
* [bitnami/cassandra] Release 11.3.14 ([#29077](https://github.com/bitnami/charts/pull/29077))
|
||||
* [bitnami/cassandra] feat: :sparkles: Allow setting initdb scripts in values ([#29172](https://github.com/bitnami/charts/pull/29172))
|
||||
|
||||
## <small>11.3.14 (2024-08-28)</small>
|
||||
|
||||
* [bitnami/cassandra] Release 11.3.14 (#29077) ([70e610c](https://github.com/bitnami/charts/commit/70e610c83801ad78a7d6370ee830df0ff97c129e)), closes [#29077](https://github.com/bitnami/charts/issues/29077)
|
||||
|
||||
## <small>11.3.13 (2024-08-21)</small>
|
||||
|
||||
|
||||
@@ -32,4 +32,4 @@ maintainers:
|
||||
name: cassandra
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/cassandra
|
||||
version: 11.3.14
|
||||
version: 11.4.0
|
||||
|
||||
@@ -177,6 +177,7 @@ As the image run as non-root by default, it is necessary to adjust the ownership
|
||||
| `dbUser.forcePassword` | Force the user to provide a non | `false` |
|
||||
| `dbUser.password` | Password for `dbUser.user`. Randomly generated if empty | `""` |
|
||||
| `dbUser.existingSecret` | Use an existing secret object for `dbUser.user` password (will ignore `dbUser.password`) | `""` |
|
||||
| `initDB` | Object with cql scripts. Useful for creating a keyspace and pre-populating data | `{}` |
|
||||
| `initDBConfigMap` | ConfigMap with cql scripts. Useful for creating a keyspace and pre-populating data | `""` |
|
||||
| `initDBSecret` | Secret with cql script (with sensitive data). Useful for creating a keyspace and pre-populating data | `""` |
|
||||
| `existingConfiguration` | ConfigMap with custom cassandra configuration files. This overrides any other Cassandra configuration set in the chart | `""` |
|
||||
|
||||
19
bitnami/cassandra/templates/initdb-configmap.yaml
Normal file
19
bitnami/cassandra/templates/initdb-configmap.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
{{- /*
|
||||
Copyright Broadcom, Inc. All Rights Reserved.
|
||||
SPDX-License-Identifier: APACHE-2.0
|
||||
*/}}
|
||||
|
||||
{{- if and .Values.initDB (not .Values.initDBConfigMap) }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ printf "%s-init-scripts" (include "common.names.fullname" .) }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
||||
app.kubernetes.io/part-of: cassandra
|
||||
{{- if .Values.commonAnnotations }}
|
||||
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
data:
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.initDB "context" .) | nindent 2 }}
|
||||
{{ end }}
|
||||
@@ -462,7 +462,7 @@ spec:
|
||||
- name: certs-shared
|
||||
mountPath: /opt/bitnami/cassandra/certs
|
||||
{{- end }}
|
||||
{{- if .Values.initDBConfigMap }}
|
||||
{{- if or .Values.initDBConfigMap .Values.initDB }}
|
||||
- name: init-db-cm
|
||||
mountPath: /docker-entrypoint-initdb.d/configmap
|
||||
{{- end }}
|
||||
@@ -566,10 +566,10 @@ spec:
|
||||
{{- end }}
|
||||
- name: empty-dir
|
||||
emptyDir: {}
|
||||
{{- if .Values.initDBConfigMap }}
|
||||
{{- if or .Values.initDB .Values.initDBConfigMap }}
|
||||
- name: init-db-cm
|
||||
configMap:
|
||||
name: {{ tpl .Values.initDBConfigMap $ }}
|
||||
name: {{ ternary (printf "%s-init-scripts" (include "common.names.fullname" .)) (tpl .Values.initDBConfigMap $) (empty .Values.initDBConfigMap) }}
|
||||
{{- end }}
|
||||
{{- if .Values.initDBSecret }}
|
||||
- name: init-db-secret
|
||||
|
||||
@@ -130,6 +130,9 @@ dbUser:
|
||||
## cassandra-password: myCassandraPasswordKey
|
||||
##
|
||||
existingSecret: ""
|
||||
## @param initDB Object with cql scripts. Useful for creating a keyspace and pre-populating data
|
||||
##
|
||||
initDB: {}
|
||||
## @param initDBConfigMap ConfigMap with cql scripts. Useful for creating a keyspace and pre-populating data
|
||||
##
|
||||
initDBConfigMap: ""
|
||||
|
||||
Reference in New Issue
Block a user