Skip to content

Commit

Permalink
[kube-state-metrics] Add option to attach sidecar container
Browse files Browse the repository at this point in the history
Signed-off-by: dominic-paul-92 <[email protected]>
  • Loading branch information
dominic-paul-92 committed Sep 28, 2023
1 parent da541e6 commit 9953a02
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kube-state-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords:
- prometheus
- kubernetes
type: application
version: 5.13.0
version: 5.14.0
appVersion: 2.10.0
home: https://github.com/kubernetes/kube-state-metrics/
sources:
Expand Down
5 changes: 4 additions & 1 deletion charts/kube-state-metrics/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.sidecars }}
{{- tpl (toYaml .Values.sidecars) $ | nindent 6 }}
{{- end }}
{{- if or .Values.imagePullSecrets .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- include "kube-state-metrics.imagePullSecrets" (dict "Values" .Values "imagePullSecrets" .Values.imagePullSecrets) | indent 8 }}
Expand Down Expand Up @@ -278,6 +281,6 @@ spec:
name: {{ template "kube-state-metrics.fullname" . }}-customresourcestate-config
{{- end }}
{{- if .Values.volumes }}
{{ toYaml .Values.volumes | indent 8 }}
{{- tpl (toYaml .Values.volumes) $ | nindent 8 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/kube-state-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -442,3 +442,9 @@ extraManifests: []
# name: prometheus-extra
# data:
# extra-data: "value"

# Additional sidecar containers to the kube-state-metrics pod(s)
sidecars: []
# - name: your-image-name
# image: your-image
# imagePullPolicy: Always

0 comments on commit 9953a02

Please sign in to comment.