fix wrong references for externalInterfaces
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user