File tree Expand file tree Collapse file tree 2 files changed +28
-26
lines changed Expand file tree Collapse file tree 2 files changed +28
-26
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,10 @@ spec:
1919 matchLabels :
2020 app : olm-operator
2121 ingress :
22- - ports :
23- - protocol : TCP
24- port : 8080
22+ - {{ .Values.networkPolicy.metrics | toYaml | nindent 6 | trimSuffix "\n" }}
2523 egress :
26- - ports :
27- - protocol : TCP
28- port : 6443 # kube-api service
29- - protocol : TCP
30- port : 53 # DNS
31- - protocol : UDP
32- port : 53 # DNS
24+ - {{ .Values.networkPolicy.kubeAPIServer | toYaml | nindent 6 | trimSuffix "\n" }}
25+ - {{ .Values.networkPolicy.dns | toYaml | nindent 6 | trimSuffix "\n" }}
3326 policyTypes :
3427 - Ingress
3528 - Egress
@@ -44,19 +37,13 @@ spec:
4437 matchLabels :
4538 app : catalog-operator
4639 ingress :
47- - ports :
48- - protocol : TCP
49- port : metrics
40+ - {{ .Values.networkPolicy.metrics | toYaml | nindent 6 | trimSuffix "\n" }}
5041 egress :
51- - ports :
52- - protocol : TCP
53- port : 6443 # kube-api server
42+ - {{ .Values.networkPolicy.kubeAPIServer | toYaml | nindent 6 | trimSuffix "\n" }}
43+ - {{ .Values.networkPolicy.dns | toYaml | nindent 6 | trimSuffix "\n" }}
44+ - ports : # This is another distinct rule in the egress list
5445 - protocol : TCP
55- port : 50051 # registry pods' service port
56- - protocol : TCP
57- port : 53 # DNS
58- - protocol : UDP
59- port : 53 # DNS
46+ port : {{ .Values.catalogGrpcServicePort }}
6047 policyTypes :
6148 - Ingress
6249 - Egress
@@ -75,13 +62,10 @@ spec:
7562 - protocol : TCP
7663 port : {{ .Values.package.service.internalPort }}
7764 egress :
65+ - {{ .Values.networkPolicy.dns | toYaml | nindent 6 | trimSuffix "\n" }}
7866 - ports :
7967 - protocol : TCP
80- port : 50051 # registry pods' service port
81- - protocol : UDP
82- port : 53 # DNS
83- - protocol : TCP
84- port : 53 # DNS
68+ port : {{ .Values.catalogGrpcServicePort }}
8569 policyTypes :
8670 - Ingress
8771 - Egress
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ writeStatusName: '""'
1919imagestream : false
2020debug : false
2121installType : upstream
22+ catalogGrpcServicePort : 50051
23+
2224olm :
2325 replicaCount : 1
2426 image :
@@ -75,3 +77,19 @@ package:
7577monitoring :
7678 enabled : false
7779 namespace : monitoring
80+
81+ networkPolicy :
82+ dns :
83+ ports :
84+ - protocol : TCP
85+ port : 53
86+ - protocol : UDP
87+ port : 53
88+ kubeAPIServer :
89+ ports :
90+ - protocol : TCP
91+ port : 6443
92+ metrics :
93+ ports :
94+ - protocol : TCP
95+ port : metrics
You can’t perform that action at this time.
0 commit comments