[mariadb] Fix exporter secrets hash in StatefulSet template

This commit ensures that the hash for the exporter
secrets is included in the StatefulSet template of
the MariaDB chart. This is necessary for the
exporter component to function correctly within
the MariaDB deployment.

Change-Id: Ie5c0630f931165d0319e6c94087f86e58bc5b505
Signed-off-by: Sergiy Markin <smarkin@mirantis.com>
This commit is contained in:
Sergiy Markin
2025-07-29 16:46:07 +00:00
parent 7bcc0b9572
commit c6045bdf4b
2 changed files with 9 additions and 0 deletions

View File

@@ -122,6 +122,7 @@ spec:
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
mariadb-dbadmin-password-hash: {{ tuple "secret-dbadmin-password.yaml" . | include "helm-toolkit.utils.hash" }}
mariadb-sst-password-hash: {{ tuple "secret-dbadmin-password.yaml" . | include "helm-toolkit.utils.hash" }}
secrets-etc-exporter-hash: {{ tuple "exporter-secrets-etc.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "mariadb-server" "containerNames" (list "init" "mariadb-perms" "mariadb") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
shareProcessNamespace: true

View File

@@ -0,0 +1,8 @@
---
mariadb:
- |
This change applies a fix to the StatefulSet template of the MariaDB chart,
ensuring that the hash for the exporter secrets is correctly included. This
is necessary for the proper functioning of the exporter component in the
MariaDB deployment.
...