fix: add cilium cluster feature guards to network policies

This commit is contained in:
2025-06-24 14:26:03 +02:00
parent 4cff341fb0
commit d5e0da1692
78 changed files with 158 additions and 2 deletions
@@ -1,3 +1,4 @@
{{- if .Values.clusterConfig.cilium.enabled }}
# apiVersion: cilium.io/v2
# kind: CiliumNetworkPolicy
# metadata:
@@ -13,3 +14,4 @@
# - ports:
# - port: "6443"
# protocol: TCP
{{- end }}
@@ -1,3 +1,4 @@
{{- if .Values.clusterConfig.cilium.enabled }}
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
@@ -9,3 +10,4 @@ spec:
- matchName: id.barentswatch.no
endpointSelector:
matchLabels: {}
{{- end }}
@@ -1,3 +1,4 @@
{{- if .Values.clusterConfig.cilium.enabled }}
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
@@ -10,3 +11,4 @@ spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: atlantis
{{- end }}
@@ -1,3 +1,4 @@
{{- if .Values.clusterConfig.cilium.enabled }}
# apiVersion: cilium.io/v2
# kind: CiliumClusterwideNetworkPolicy
# metadata:
@@ -23,3 +24,4 @@
# # - matchPattern: '*.gitlab.com'
# endpointSelector:
# matchLabels: {}
{{- end }}