feat: add support for specifying annotations

As the command contains a colon, it must be handled in the commands binary as opposed to subcommands.

Also include a simple bats test.
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-02-06 13:54:53 -05:00
1 parent 8b2f37feea
commit f5f583b12b
16 files changed
+548 -14

No files matched your search

@@ -6,6 +6,16 @@ kind: Service
metadata:
annotations:
dokku.com/managed: "true"
{{- if and $.Values.global.annotations $.Values.global.annotations.service }}
{{- range $k, $v := $.Values.global.annotations.service }}
{{ $k }}: {{ $v | quote }}
{{- end }}
{{- end }}
{{- if and $config.annotations $config.annotations.service }}
{{- range $k, $v := $config.annotations.service }}
{{ $k }}: {{ $v | quote }}
{{- end }}
{{- end }}
labels:
app.kubernetes.io/instance: {{ $.Values.global.app_name }}-{{ $processName }}
app.kubernetes.io/name: {{ $processName }}