secret-additional.yaml 706 B

123456789101112131415161718192021
  1. {{- if .Values.controller.additionalSecrets -}}
  2. ---
  3. apiVersion: v1
  4. kind: Secret
  5. metadata:
  6. name: {{ template "jenkins.fullname" . }}-additional-secrets
  7. namespace: {{ template "jenkins.namespace" . }}
  8. labels:
  9. "app.kubernetes.io/name": '{{ template "jenkins.name" .}}'
  10. {{- if .Values.renderHelmLabels }}
  11. "helm.sh/chart": "{{ template "jenkins.label" .}}"
  12. {{- end }}
  13. "app.kubernetes.io/managed-by": "{{ .Release.Service }}"
  14. "app.kubernetes.io/instance": "{{ .Release.Name }}"
  15. "app.kubernetes.io/component": "{{ .Values.controller.componentName }}"
  16. type: Opaque
  17. data:
  18. {{- range .Values.controller.additionalSecrets }}
  19. {{ .name }}: {{ .value | b64enc }}
  20. {{- end }}
  21. {{- end }}