Skip to content

Commit

Permalink
[prometheus-mysql-exporter] add imagePullSecrets and fullname override (
Browse files Browse the repository at this point in the history
#2905)

* [prometheus-mysql-exporter] add imagePullSecrets and fullname override

Signed-off-by: yaser <[email protected]>

* [prometheus-mysql-exporter] add imagePullSecrets and fullname override

add requested changes by reviewers

Signed-off-by: yaser <[email protected]>

Signed-off-by: yaser <[email protected]>
  • Loading branch information
yaskinny authored Jan 11, 2023
1 parent 8a4bc9a commit 5aabe31
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-mysql-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for prometheus mysql exporter with cloudsqlproxy
name: prometheus-mysql-exporter
version: 1.11.1
version: 1.12.1
home: https://github.com/prometheus/mysqld_exporter
appVersion: v0.14.0
sources:
Expand Down
6 changes: 5 additions & 1 deletion charts/prometheus-mysql-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ spec:
serviceAccountName: {{ template "prometheus-mysql-exporter.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if and .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if or .Values.config .Values.collectors }}
args:
Expand Down
16 changes: 12 additions & 4 deletions charts/prometheus-mysql-exporter/values.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
# Default values for prometheus-mysql-exporter.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
## Default values for prometheus-mysql-exporter.
## This is a YAML-formatted file.
## Declare variables to be passed into your templates.

## override release name
fullnameOverride: ""

replicaCount: 1

image:
repository: "prom/mysqld-exporter"
tag: "v0.14.0"
## if not set charts appVersion var is used
tag: ""
pullPolicy: "IfNotPresent"

# imagePullSecrets:
# - name: secret-name
imagePullSecrets: []

service:
labels: {}
annotations: {}
Expand Down

0 comments on commit 5aabe31

Please sign in to comment.