[bitnami/drupal] Set usePasswordFiles=true by default (#32342)

* [bitnami/drupal] Set `usePasswordFiles=true` by default

Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* Update values.yaml

Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com>

* Remove 'and'

Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Miguel Ruiz
2025-03-27 13:57:50 +01:00
committed by GitHub
parent aac77c1cf3
commit ee46d82b4b
5 changed files with 48 additions and 12 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 21.1.7 (2025-03-19)
## 21.2.0 (2025-03-24)
* [bitnami/drupal] Release 21.1.7 ([#32521](https://github.com/bitnami/charts/pull/32521))
* [bitnami/drupal] Set `usePasswordFiles=true` by default ([#32342](https://github.com/bitnami/charts/pull/32342))
## <small>21.1.7 (2025-03-19)</small>
* [bitnami/drupal] Release 21.1.7 (#32521) ([408a911](https://github.com/bitnami/charts/commit/408a911fabee705100f4c9f64987367f2730d4eb)), closes [#32521](https://github.com/bitnami/charts/issues/32521)
## <small>21.1.6 (2025-03-18)</small>

View File

@@ -41,4 +41,4 @@ maintainers:
name: drupal
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/drupal
version: 21.1.7
version: 21.2.0

View File

@@ -170,15 +170,16 @@ helm install my-release --set persistence.existingClaim=PVC_NAME oci://REGISTRY_
### Common parameters
| Name | Description | Value |
| ------------------- | ---------------------------------------------------------------------------------------------------------- | ----- |
| `kubeVersion` | Force target Kubernetes version (using Helm capabilities if not set) | `""` |
| `nameOverride` | String to partially override drupal.fullname template (will maintain the release name) | `""` |
| `fullnameOverride` | String to fully override drupal.fullname template | `""` |
| `namespaceOverride` | String to fully override common.names.namespace | `""` |
| `commonAnnotations` | Common annotations to add to all Drupal resources (sub-charts are not considered). Evaluated as a template | `{}` |
| `commonLabels` | Common labels to add to all Drupal resources (sub-charts are not considered). Evaluated as a template | `{}` |
| `extraDeploy` | Array of extra objects to deploy with the release (evaluated as a template). | `[]` |
| Name | Description | Value |
| ------------------- | ---------------------------------------------------------------------------------------------------------- | ------ |
| `kubeVersion` | Force target Kubernetes version (using Helm capabilities if not set) | `""` |
| `nameOverride` | String to partially override drupal.fullname template (will maintain the release name) | `""` |
| `fullnameOverride` | String to fully override drupal.fullname template | `""` |
| `namespaceOverride` | String to fully override common.names.namespace | `""` |
| `commonAnnotations` | Common annotations to add to all Drupal resources (sub-charts are not considered). Evaluated as a template | `{}` |
| `commonLabels` | Common labels to add to all Drupal resources (sub-charts are not considered). Evaluated as a template | `{}` |
| `extraDeploy` | Array of extra objects to deploy with the release (evaluated as a template). | `[]` |
| `usePasswordFiles` | Mount credentials as files instead of using environment variables | `true` |
### Drupal parameters

View File

@@ -203,22 +203,32 @@ spec:
value: {{ include "drupal.databaseName" . | quote }}
- name: DRUPAL_DATABASE_USER
value: {{ include "drupal.databaseUser" . | quote }}
{{- if .Values.usePasswordFiles }}
- name: DRUPAL_DATABASE_PASSWORD_FILE
value: {{ printf "/opt/bitnami/drupal/secrets/%s" (include "drupal.databasePasswordKey" .) }}
{{- else }}
- name: DRUPAL_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "drupal.databaseSecretName" . }}
key: {{ include "drupal.databasePasswordKey" . | quote }}
{{- end }}
- name: DRUPAL_SKIP_BOOTSTRAP
value: {{ ternary "yes" "no" .Values.drupalSkipInstall | quote }}
- name: DRUPAL_PROFILE
value: {{ .Values.drupalProfile | quote }}
- name: DRUPAL_USERNAME
value: {{ .Values.drupalUsername | quote }}
{{- if .Values.usePasswordFiles }}
- name: DRUPAL_PASSWORD_FILE
value: "/opt/bitnami/drupal/secrets/drupal-password"
{{- else }}
- name: DRUPAL_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "drupal.secretName" . }}
key: drupal-password
{{- end }}
- name: DRUPAL_EMAIL
value: {{ .Values.drupalEmail | quote }}
{{- if .Values.smtpHost }}
@@ -234,12 +244,17 @@ spec:
value: {{ .Values.smtpUser | quote }}
{{- end }}
{{- if .Values.smtpPassword }}
{{- if .Values.usePasswordFiles }}
- name: SMTP_PASSWORD_FILE
value: "/opt/bitnami/drupal/secrets/smtp-password"
{{- else }}
- name: SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "drupal.secretName" . }}
key: smtp-password
{{- end }}
{{- end }}
{{- if .Values.smtpProtocol }}
- name: SMTP_PROTOCOL
value: {{ .Values.smtpProtocol | quote }}
@@ -337,6 +352,10 @@ spec:
subPath: app-base-dir
- name: drupal-data
mountPath: /bitnami/drupal
{{- if .Values.usePasswordFiles }}
- name: drupal-secrets
mountPath: /opt/bitnami/drupal/secrets
{{- end }}
{{- if .Values.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
@@ -372,6 +391,15 @@ spec:
volumes:
- name: empty-dir
emptyDir: {}
{{- if .Values.usePasswordFiles }}
- name: drupal-secrets
projected:
sources:
- secret:
name: {{ include "drupal.databaseSecretName" . }}
- secret:
name: {{ include "drupal.secretName" . }}
{{- end }}
- name: drupal-data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:

View File

@@ -55,6 +55,9 @@ commonLabels: {}
## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template).
##
extraDeploy: []
## @param usePasswordFiles Mount credentials as files instead of using environment variables
##
usePasswordFiles: true
## @section Drupal parameters
## Bitnami Drupal image version