Files
charts/bitnami/orangehrm/templates/secrets.yaml
Francisco de Paz Galán 240dc1bea8 [bitnami/*] POC Lookup function implementation (#4831)
* [bitnami/*] POC Implement lookup function

Signed-off-by: fdepaz <fdepaz@bitnami.com>

* Improve secure password generation

* Bump minor version

* Apply suggested changes

* Restore password validation

* Fix lint issue

* Add password validation to common

* Fix regexp

* Add subchart support
2021-01-13 16:10:48 +01:00

22 lines
1.1 KiB
YAML

{{- if or (not .Values.existingSecret) (and (not .Values.smtpExistingSecret) .Values.smtpPassword) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
type: Opaque
data:
{{- if not .Values.existingSecret }}
orangehrm-password: {{ include "common.secrets.passwords.manage" (dict "secret" ( include "common.names.fullname" .) "key" "orangehrm-password" "providedValues" (list "orangehrmPassword") "strong" true "context" $) }}
{{- end }}
{{- if and .Values.smtpPassword (not .Values.smtpExistingSecret) }}
smtp-password: {{ include "common.secrets.passwords.manage" (dict "secret" ( include "common.names.fullname" .) "key" "smtp-password" "providedValues" (list "smtpPassword") "context" $) }}
{{- end }}
{{- end }}