Skip to content

Commit

Permalink
add values, extraVolumes, extraVolumeMounts and containerSecurityContext
Browse files Browse the repository at this point in the history
Signed-off-by: ixsakra <[email protected]>
  • Loading branch information
rlia committed Dec 22, 2023
1 parent 8f37709 commit 0e17b52
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-ipmi-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: This is an IPMI exporter for Prometheus.

type: application

version: 0.2.0
version: 0.3.0

appVersion: "v1.7.0"

Expand Down
10 changes: 10 additions & 0 deletions charts/prometheus-ipmi-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ spec:
args:
- "--config.file"
- "/config.yml"
{{- with.Values.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: config-volume
mountPath: /config.yml
subPath: config.yml
readOnly: true
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand All @@ -51,6 +58,9 @@ spec:
- name: config-volume
configMap:
name: {{ template "prometheus-ipmi-exporter.fullname" . }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector: {{ toYaml . | nindent 8 }}
{{- end }}
Expand Down
9 changes: 9 additions & 0 deletions charts/prometheus-ipmi-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ resources:

additionalAnnotations: {}

# container-level security context
containerSecurityContext: {}

# List of extra mounts to add
extraVolumeMounts: []

# List of extra volumes to add
extraVolumes: []

serviceMonitor:
# When set true then use a ServiceMonitor to configure scraping
enabled: false
Expand Down

0 comments on commit 0e17b52

Please sign in to comment.