Files
library-charts/library/common/templates/class/_externalInterfaces.tpl
Kjeld Schouten-Lebbing 7c44ee5813 move around
2023-01-21 12:16:56 +01:00

23 lines
835 B
Smarty

{{- define "ix.v1.common.class.externalInterface" -}}
{{- $iface := .iface -}}
{{- $index := .index -}}
{{- $root := .root }}
---
apiVersion: {{ include "ix.v1.common.capabilities.externalInterfaces.apiVersion" . }}
kind: NetworkAttachmentDefinition
metadata:
name: ix-{{ $root.Release.Name }}-{{ $index }}
{{- $labels := (include "ix.v1.common.labels" $root | fromYaml) -}}
{{- with (include "ix.v1.common.util.labels.render" (dict "root" $root "labels" $labels) | trim) }}
labels:
{{- . | nindent 4 }}
{{- end }}
{{- $annotations := (include "ix.v1.common.annotations" $root | fromYaml) -}}
{{- with (include "ix.v1.common.util.annotations.render" (dict "root" $root "annotations" $annotations) | trim) }}
annotations:
{{- . | nindent 4 }}
{{- end }}
spec:
config: {{ $iface | squote }}
{{- end -}}