secret.yaml 768 B

1234567891011121314151617181920
  1. {{- if and (not .Values.controller.admin.existingSecret) (.Values.controller.adminSecret) -}}
  2. apiVersion: v1
  3. kind: Secret
  4. metadata:
  5. name: {{ template "jenkins.fullname" . }}
  6. namespace: {{ template "jenkins.namespace" . }}
  7. labels:
  8. "app.kubernetes.io/name": '{{ template "jenkins.name" .}}'
  9. {{- if .Values.renderHelmLabels }}
  10. "helm.sh/chart": "{{ template "jenkins.label" .}}"
  11. {{- end }}
  12. "app.kubernetes.io/managed-by": "{{ .Release.Service }}"
  13. "app.kubernetes.io/instance": "{{ .Release.Name }}"
  14. "app.kubernetes.io/component": "{{ .Values.controller.componentName }}"
  15. type: Opaque
  16. data:
  17. jenkins-admin-password: {{ template "jenkins.password" . }}
  18. jenkins-admin-user: {{ .Values.controller.adminUser | b64enc | quote }}
  19. {{- end }}