mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
feat(common): Release 2.0.0 (#189)
This commit is contained in:
parent
8a42d212af
commit
98677d85b2
56 changed files with 1192 additions and 1804 deletions
|
@ -93,7 +93,7 @@ Returns the value for volumes
|
|||
{{- $_ := set $volume.hostPath "type" . -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* hostPath persistence type */ -}}
|
||||
{{- /* nfs persistence type */ -}}
|
||||
{{- else if eq $persistenceValues.type "nfs" -}}
|
||||
{{- $_ := set $volume "nfs" dict -}}
|
||||
{{- $_ := set $volume.nfs "server" (required "server not set" $persistenceValues.server) -}}
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
{{/*
|
||||
Return a service port number by name for a Service object
|
||||
*/}}
|
||||
{{- define "bjw-s.common.lib.service.getPortNumberByName" -}}
|
||||
{{- $rootContext := .rootContext -}}
|
||||
{{- $identifier := .serviceID -}}
|
||||
{{- $portName := .portName -}}
|
||||
|
||||
{{- $service := include "bjw-s.common.lib.service.getByIdentifier" (dict "rootContext" $rootContext "id" $identifier) | fromYaml -}}
|
||||
|
||||
{{- if $service -}}
|
||||
{{ $servicePort := dig "ports" $portName "port" nil $service -}}
|
||||
{{- if not (eq $servicePort nil) -}}
|
||||
{{- $servicePort -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue