Skip to content

Commit

Permalink
Fix podLabels and chaoskube.metrics.port, add ability to unset args
Browse files Browse the repository at this point in the history
  • Loading branch information
multimac committed Jul 3, 2021
1 parent ea64e94 commit c602fff
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions chart/chaoskube/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ spec:
{{- end }}
labels:
{{- include "chaoskube.selectorLabels" . | nindent 8 }}
{{- with .Values.podAnnotations }}
{{- toYaml . | indent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
Expand All @@ -43,14 +43,10 @@ spec:
{{- end }}
args:
{{- range $key, $value := .Values.chaoskube.args }}
{{- if $value }}
- --{{ $key }}={{ $value }}
{{- else }}
- --{{ $key }}
{{- end }}
{{- end }}
{{- if .Values.chaoskube.metrics.enabled }}
- --metrics-address={{ .Values.chaoskube.metrics.port }}
- --metrics-address=:{{ .Values.chaoskube.metrics.port }}
{{- end }}
{{- if .Values.chaoskube.metrics.enabled }}
ports:
Expand Down

0 comments on commit c602fff

Please sign in to comment.