From 4cac07d78854e6d1144e53b1e0f6248b9c42a6b7 Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Tue, 22 May 2018 15:11:20 -0500 Subject: [PATCH] Mariadb: Update mysql exporter job user dependencies This updates the prometheus mysql exporter mysql user job dependencies to the correct key. It was set incorrectly, resulting in a circular dependency upon itself Change-Id: I961924b240b35da4b4a997bdacd189ad870a05b4 --- .../monitoring/prometheus/exporter-job-create-user.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mariadb/templates/monitoring/prometheus/exporter-job-create-user.yaml b/mariadb/templates/monitoring/prometheus/exporter-job-create-user.yaml index 744d487553..df7a147015 100644 --- a/mariadb/templates/monitoring/prometheus/exporter-job-create-user.yaml +++ b/mariadb/templates/monitoring/prometheus/exporter-job-create-user.yaml @@ -18,7 +18,7 @@ limitations under the License. {{- $envAll := . }} {{- $serviceAccountName := "exporter-create-sql-user" }} -{{ tuple $envAll "prometheus_mysql_exporter" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} +{{ tuple $envAll "prometheus_create_mysql_user" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} --- apiVersion: batch/v1 kind: Job @@ -35,7 +35,7 @@ spec: nodeSelector: {{ .Values.labels.prometheus_mysql_exporter.node_selector_key }}: {{ .Values.labels.prometheus_mysql_exporter.node_selector_value }} initContainers: -{{ tuple $envAll "prometheus_mysql_exporter" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }} +{{ tuple $envAll "prometheus_create_mysql_user" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }} containers: - name: exporter-create-sql-user {{ tuple $envAll "prometheus_create_mysql_user" | include "helm-toolkit.snippets.image" | indent 10 }}