As the command contains a colon, it must be handled in the commands binary as opposed to subcommands. Also include a simple bats test.
22 lines
803 B
YAML
22 lines
803 B
YAML
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
annotations:
|
|
app.kubernetes.io/version: {{ $.Values.global.deploment_id | quote }}
|
|
dokku.com/managed: "true"
|
|
{{- if and $.Values.global.annotations $.Values.global.annotations.secret }}
|
|
{{- range $k, $v := $.Values.global.annotations.secret }}
|
|
{{ $k }}: {{ $v | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
app.kubernetes.io/instance: env-{{ $.Values.global.app_name }}.{{ $.Values.global.deploment_id }}
|
|
app.kubernetes.io/name: env-{{ $.Values.global.app_name }}
|
|
app.kubernetes.io/part-of: {{ $.Values.global.app_name }}
|
|
name: env-{{ $.Values.global.app_name }}.{{ $.Values.global.deploment_id }}
|
|
namespace: {{ $.Values.global.namespace }}
|
|
{{- with .Values.global.secrets }}
|
|
data:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|