mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
feat(common): Release v3.7.2 (#388)
Signed-off-by: solidDoWant <fred.heinecke@yahoo.com> Co-authored-by: solidDoWant <fred.heinecke@yahoo.com>
This commit is contained in:
parent
ed1fc273b2
commit
9efa8f0adb
10 changed files with 119 additions and 48 deletions
|
@ -26,9 +26,9 @@ Return the primary service object for a controller
|
|||
{{- $result = $service -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Return the first Service if none has been explicitly marked as primary */ -}}
|
||||
{{- /* Return the first Service (alphabetically) if none has been explicitly marked as primary */ -}}
|
||||
{{- if not $result -}}
|
||||
{{- $firstServiceKey := keys $enabledServicesForController | first -}}
|
||||
{{- $firstServiceKey := keys $enabledServicesForController | sortAlpha | first -}}
|
||||
{{- $result = get $enabledServicesForController $firstServiceKey -}}
|
||||
{{- $identifier = $result.identifier -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -15,9 +15,9 @@ Return the primary port for a given Service object.
|
|||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Return the first port if none has been explicitly marked as primary */ -}}
|
||||
{{- /* Return the first port (alphabetically) if none has been explicitly marked as primary */ -}}
|
||||
{{- if not $result -}}
|
||||
{{- $firstPortKey := keys $enabledPorts | first -}}
|
||||
{{- $firstPortKey := keys $enabledPorts | sortAlpha | first -}}
|
||||
{{- if $firstPortKey -}}
|
||||
{{- $result = get $enabledPorts $firstPortKey -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue