mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 08:57:04 +02:00
# Removed - Promtail add-on has been removed # Fixed - Fixed httpGet probe whitespace rendering (#76) - Fixed Secret management for ServiceAccounts (fixes #78) - Fixed code-server add-on Service rendering # Added - Added support for Gateway API Routes (#59) # Changed - Services and their ports are now assumed enabled by default - Updated `code-server` image to v4.8.3 - Updated `netshoot` image to v0.8 Signed-off-by: András Maróy <andras@maroy.hu> Signed-off-by: András Maróy <andras@maroy.hu> Co-authored-by: András Maróy <andras@maroy.hu> Co-authored-by: pando85 <pando855@gmail.com>
18 lines
513 B
Smarty
18 lines
513 B
Smarty
{{/*
|
|
Return the primary service object
|
|
*/}}
|
|
{{- define "bjw-s.common.lib.service.primary" -}}
|
|
{{- $enabledServices := (include "bjw-s.common.lib.service.enabledServices" $ | fromYaml ) }}
|
|
|
|
{{- $result := "" -}}
|
|
{{- range $name, $service := $enabledServices -}}
|
|
{{- if and (hasKey $service "primary") $service.primary -}}
|
|
{{- $result = $name -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- if not $result -}}
|
|
{{- $result = keys $enabledServices | first -}}
|
|
{{- end -}}
|
|
{{- $result -}}
|
|
{{- end -}}
|