mirror of
https://github.com/truenas/charts.git
synced 2026-06-17 15:38:49 +08:00
whoopsis
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{{/* Labels that are added to podSpec */}}
|
||||
{{/* Call this template:
|
||||
{{ include "ix.v1.common.lib.metadata.podAnnotations" $ }}
|
||||
*/}}
|
||||
{{- define "ix.v1.common.lib.metadata.podAnnotations" -}}
|
||||
rollme: {{ randAlphaNum 5 | quote }}
|
||||
{{- if and .Values.ixExternalInterfacesConfiguration -}}
|
||||
{{- if .Values.ixExternalInterfacesConfigurationNames }}
|
||||
k8s.v1.cni.cncf.io/networks: {{ join ", " .Values.ixExternalInterfacesConfigurationNames }}
|
||||
{{- else -}}
|
||||
{{- fail "External interfaces defined, but <ixExteernalInterfaceConfigurationNames> is empty." -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -3,13 +3,4 @@
|
||||
{{ include "ix.v1.common.lib.metadata.podLabels" $ }}
|
||||
*/}}
|
||||
{{- define "ix.v1.common.lib.metadata.podLabels" -}}
|
||||
rollme: {{ randAlphaNum 5 | quote }}
|
||||
{{- if and .Values.ixExternalInterfacesConfiguration -}}
|
||||
{{- if .Values.ixExternalInterfacesConfigurationNames }}
|
||||
k8s.v1.cni.cncf.io/networks: {{ join ", " .Values.ixExternalInterfacesConfigurationNames }}
|
||||
{{- else -}}
|
||||
{{- fail "Found external interfaces defined, but <ixExteernalInterfaceConfigurationNames> is empty." -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user