secret-https-jks.yaml 908 B

1234567891011121314151617181920
  1. {{- if and .Values.controller.httpsKeyStore.enable ( not .Values.controller.httpsKeyStore.jenkinsHttpsJksSecretName ) (not .Values.controller.httpsKeyStore.disableSecretMount) -}}
  2. apiVersion: v1
  3. kind: Secret
  4. metadata:
  5. name: {{ template "jenkins.fullname" . }}-https-jks
  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-jks-file: |
  18. {{ .Values.controller.httpsKeyStore.jenkinsKeyStoreBase64Encoded | indent 4 }}
  19. https-jks-password: {{ .Values.controller.httpsKeyStore.password | b64enc }}
  20. {{- end }}