-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[prometheus-mysql-exporter]: upgrade cloud-sql-proxy v2 (#3583)
* feat(prometheus-mysql-exporter)!: upgrade cloud-sql-proxy Signed-off-by: Marcelo Clavel <[email protected]> * Update charts/prometheus-mysql-exporter/Chart.yaml Signed-off-by: André Bauer <[email protected]> * feat(prometheus-mysql-exporter): support mysql_exporter v0.15.0 Signed-off-by: Marcelo Clavel <[email protected]> --------- Signed-off-by: Marcelo Clavel <[email protected]> Signed-off-by: André Bauer <[email protected]> Co-authored-by: André Bauer <[email protected]>
- Loading branch information
Showing
8 changed files
with
169 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
charts/prometheus-mysql-exporter/templates/secret-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{- if not .Values.mysql.existingConfigSecret.name }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "prometheus-mysql-exporter.secretName" . }} | ||
labels: | ||
{{- include "prometheus-mysql-exporter.labels" . | nindent 4 }} | ||
type: Opaque | ||
stringData: | ||
{{ template "prometheus-mysql-exporter.secretKey" . }}: | | ||
[client] | ||
host={{ .Values.mysql.host }} | ||
port={{ .Values.mysql.port }} | ||
user={{ .Values.mysql.user }} | ||
{{- if and (.Values.mysql.pass) (not .Values.mysql.existingPasswordSecret.name) }} | ||
password={{ .Values.mysql.pass }} | ||
{{- end }} | ||
{{- if .Values.mysql.db }} | ||
database={{ .Values.mysql.db }} | ||
{{- end }} | ||
{{- if .Values.mysql.protocol }} | ||
protocol={{ .Values.mysql.protocol }} | ||
{{- end }} | ||
{{- range $param := .Values.mysql.additionalConfig}} | ||
{{ $param }} | ||
{{- end }} | ||
{{- end }} |
11 changes: 0 additions & 11 deletions
11
charts/prometheus-mysql-exporter/templates/secret-env.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters