feat(common): Release v2.1.1

This commit is contained in:
Bernd Schorgers 2023-11-10 16:15:29 +01:00
parent 7f786e9830
commit 8b21e9f6c7
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
4 changed files with 16 additions and 18 deletions

View file

@ -24,20 +24,18 @@ Env field used by the container.
{{- $graph := dict -}}
{{- range $name, $var := $containerObject.env -}}
{{- if $var -}}
{{- if kindIs "map" $var -}}
{{- /* Value is a map so ordering can be specified */ -}}
{{- if empty (dig "dependsOn" nil $var) -}}
{{- $_ := set $graph $name ( list ) -}}
{{- else if kindIs "string" $var.dependsOn -}}
{{- $_ := set $graph $name ( list $var.dependsOn ) -}}
{{- else if kindIs "slice" $var.dependsOn -}}
{{- $_ := set $graph $name $var.dependsOn -}}
{{- end -}}
{{- else -}}
{{- /* Value is not a map so no ordering can be specified */ -}}
{{- if kindIs "map" $var -}}
{{- /* Value is a map so ordering can be specified */ -}}
{{- if empty (dig "dependsOn" nil $var) -}}
{{- $_ := set $graph $name ( list ) -}}
{{- else if kindIs "string" $var.dependsOn -}}
{{- $_ := set $graph $name ( list $var.dependsOn ) -}}
{{- else if kindIs "slice" $var.dependsOn -}}
{{- $_ := set $graph $name $var.dependsOn -}}
{{- end -}}
{{- else -}}
{{- /* Value is not a map so no ordering can be specified */ -}}
{{- $_ := set $graph $name ( list ) -}}
{{- end -}}
{{- end -}}