{{- if .Values.controller.additionalSecrets -}} --- apiVersion: v1 kind: Secret metadata: name: {{ template "jenkins.fullname" . }}-additional-secrets namespace: {{ template "jenkins.namespace" . }} labels: "app.kubernetes.io/name": '{{ template "jenkins.name" .}}' {{- if .Values.renderHelmLabels }} "helm.sh/chart": "{{ template "jenkins.label" .}}" {{- end }} "app.kubernetes.io/managed-by": "{{ .Release.Service }}" "app.kubernetes.io/instance": "{{ .Release.Name }}" "app.kubernetes.io/component": "{{ .Values.controller.componentName }}" type: Opaque data: {{- range .Values.controller.additionalSecrets }} {{ .name }}: {{ .value | b64enc }} {{- end }} {{- end }}