mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
13 lines
445 B
Smarty
13 lines
445 B
Smarty
{{/*
|
|
Return an Ingress Object by its Identifier.
|
|
*/}}
|
|
{{- define "bjw-s.common.lib.ingress.getByIdentifier" -}}
|
|
{{- $rootContext := .rootContext -}}
|
|
{{- $identifier := .id -}}
|
|
|
|
{{- $enabledIngresses := (include "bjw-s.common.lib.ingress.enabledIngresses" (dict "rootContext" $rootContext) | fromYaml ) }}
|
|
|
|
{{- if (hasKey $enabledIngresses $identifier) -}}
|
|
{{- get $enabledIngresses $identifier | toYaml -}}
|
|
{{- end -}}
|
|
{{- end -}}
|