mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
feat(common): Release version 2.0.0-beta.1 (#173)
This commit is contained in:
parent
19767d668c
commit
7b6ee00be6
189 changed files with 3110 additions and 3023 deletions
|
@ -0,0 +1,24 @@
|
|||
{{/*
|
||||
Return the enabled containers for a controller.
|
||||
*/}}
|
||||
{{- define "bjw-s.common.lib.controller.enabledContainers" -}}
|
||||
{{- $rootContext := .rootContext -}}
|
||||
{{- $controllerObject := .controllerObject -}}
|
||||
|
||||
{{- $enabledContainers := dict -}}
|
||||
{{- range $name, $container := $controllerObject.containers -}}
|
||||
{{- if kindIs "map" $container -}}
|
||||
{{- /* Enable container by default, but allow override */ -}}
|
||||
{{- $containerEnabled := true -}}
|
||||
{{- if hasKey $container "enabled" -}}
|
||||
{{- $containerEnabled = $container.enabled -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if $containerEnabled -}}
|
||||
{{- $_ := set $enabledContainers $name . -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $enabledContainers | toYaml -}}
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue