fix wrong references for externalInterfaces

This commit is contained in:
kjeld Schouten-Lebbing
2021-05-29 13:15:53 +02:00
parent 68906beade
commit d7c9ae7fa6
4 changed files with 6 additions and 4 deletions

View File

@@ -19,4 +19,4 @@ name: common
sources:
- https://github.com/truecharts/apps/tree/master/library/common
type: library
version: 5.1.1
version: 5.1.2

View File

@@ -34,4 +34,6 @@ Main entrypoint for the common library chart. It will render all underlying temp
{{ include "common.class.portal" . | nindent 0 }}
{{ include "common.class.mountPermissions" . | nindent 0 }}
{{ include "common.classes.externalInterfaces" . | nindent 0 }}
{{- end -}}

View File

@@ -3,7 +3,7 @@ This template serves as a blueprint for External Interface objects that are crea
using the SCALE GUI.
*/}}
{{- define "common.classes.externalInterfaces" -}}
{{- range $index, $iface := .Values.externalInterfaces }}
{{- range $index, $iface := .Values.ixExternalInterfacesConfiguration }}
---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition

View File

@@ -1,8 +1,8 @@
{{/* Common annotations shared across objects */}}
{{- define "common.annotations.workload.spec" -}}
rollme: {{ randAlphaNum 5 | quote }}
{{- if .Values.externalInterfaces }}
k8s.v1.cni.cncf.io/networks: {{ join ", " .Values.externalInterfaces }}
{{- if .Values.ixExternalInterfacesConfigurationNames }}
k8s.v1.cni.cncf.io/networks: {{ join ", " .Values.ixExternalInterfacesConfigurationNames }}
{{- end }}
{{- end -}}