open-strike-2/helm/charts/helm-library/templates/components/_ingress.tpl
Nikolai Rodionov dfe888a918
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Move the real player authority to server
- Add rust bindings for the server player controller
- Implement reconciliation loop for checking the player state
- Place spawners on the test map
- Add Containerfile and helm chart
2025-01-31 19:24:57 +00:00

34 lines
939 B
Smarty

{{- define "lib.component.ingress" }}
{{- range $k, $v := .ctx.Values.ingress }}
{{- $customName := include "lib.component.ingress.name" (dict "ctx" $.ctx "name" $k) }}
{{- if $v.enabled }} {{- /* if[0] */}}
{{-
$labels := include "lib.metadata.mergeLabels"
(dict
"ctx" $.ctx
"global" ($.ctx.Values.metadata).labels
"local" ($v.metadata).labels
)
}}
{{-
$metadata := include "lib.metadata"
(dict
"ctx" $.ctx
"annotations" ($v.metadata).annotations
"labels" $labels
"name" $customName
)
}}
{{- $spec := $v -}}
{{- $_ := unset $spec "enabled" -}}
{{ include "lib.core.ingress" (dict "ctx" $.ctx "metadata" $metadata "spec" $spec ) }}
{{- end }}
{{- end }}
{{- end }}
{{- define "lib.component.ingress.name" -}} {{- /* define[0] */ -}}
{{- include "lib.error.noCtx" . -}}
{{- include "lib.error.noKey" (dict "ctx" . "key" "name") -}}
{{ printf "%s-%s" .ctx.Release.Name .name }}
{{- end -}} {{- /* /define[0] */ -}}