Merge pull request #2383 from colek42/fix-2375-falsy-fields

Fixes false/null fields in the helm chart.
This commit is contained in:
jetstack-bot 2019-12-10 12:15:14 +00:00 committed by GitHub
commit e6bf2c0ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -88,8 +88,7 @@ roleRef:
kind: Role
name: {{ template "cainjector.fullname" . }}:leaderelection
subjects:
- apiGroup: ""
kind: ServiceAccount
- kind: ServiceAccount
name: {{ include "cainjector.fullname" . }}
namespace: {{ .Release.Namespace }}

View File

@ -32,11 +32,14 @@ spec:
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | indent 8 }}
{{- end }}
annotations:
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
{{- if and .Values.prometheus.enabled (not .Values.prometheus.servicemonitor.enabled) }}
{{- if not .Values.podAnnotations }}
annotations:
{{- end }}
prometheus.io/path: "/metrics"
prometheus.io/scrape: 'true'
prometheus.io/port: '9402'