fix: add cilium cluster feature guards to network policies
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
@@ -1112,3 +1113,4 @@ data:
|
||||
"version": 1,
|
||||
"weekStart": ""
|
||||
}
|
||||
{{- end }}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
||||
{{if .Values.cilium.loadbalancerPool.enabled }}
|
||||
apiVersion: "cilium.io/v2alpha1"
|
||||
kind: CiliumLoadBalancerIPPool
|
||||
@@ -21,3 +22,4 @@ spec:
|
||||
externalIPs: true
|
||||
loadBalancerIPs: true
|
||||
{{- end}}
|
||||
{{- end }}
|
||||
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
@@ -13,3 +14,4 @@ spec:
|
||||
ingress:
|
||||
- fromEntities:
|
||||
- remote-node
|
||||
{{- end }}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
@@ -13,3 +14,4 @@ spec:
|
||||
protocol: TCP
|
||||
endpointSelector:
|
||||
matchLabels: {}
|
||||
{{- end }}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
@@ -13,3 +14,4 @@ spec:
|
||||
- ports:
|
||||
- port: "8081"
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user