diff --git a/charts/prometheus-mysql-exporter/Chart.yaml b/charts/prometheus-mysql-exporter/Chart.yaml index 928ca8684c35..82f3ff783a27 100644 --- a/charts/prometheus-mysql-exporter/Chart.yaml +++ b/charts/prometheus-mysql-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: A Helm chart for prometheus mysql exporter with cloudsqlproxy name: prometheus-mysql-exporter -version: 2.6.0 +version: 2.6.1 home: https://github.com/prometheus/mysqld_exporter appVersion: v0.15.1 sources: diff --git a/charts/prometheus-mysql-exporter/templates/deployment.yaml b/charts/prometheus-mysql-exporter/templates/deployment.yaml index 49b27d950365..6d2a44c7a2cc 100644 --- a/charts/prometheus-mysql-exporter/templates/deployment.yaml +++ b/charts/prometheus-mysql-exporter/templates/deployment.yaml @@ -68,16 +68,16 @@ spec: {{- end }} env: {{- if (.Values.resources.limits).cpu }} - - name: GOMAXPROCS - valueFrom: - resourceFieldRef: - resource: limits.cpu + - name: GOMAXPROCS + valueFrom: + resourceFieldRef: + resource: limits.cpu {{- end }} {{- if (.Values.resources.limits).memory }} - - name: GOMEMLIMIT - valueFrom: - resourceFieldRef: - resource: limits.memory + - name: GOMEMLIMIT + valueFrom: + resourceFieldRef: + resource: limits.memory {{- end }} {{- if and (not .Values.mysql.existingConfigSecret.name) (.Values.mysql.existingPasswordSecret.name) }} - name: MYSQLD_EXPORTER_PASSWORD