fix: add cilium cluster feature guards to network policies
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user