@@ -10,9 +10,7 @@ metadata:
1010spec :
1111 type : {{ .Values.service.type }}
1212 ports :
13- - port : {{ .Values.service.port }}
14- targetPort : {{ .Values.service.targetPort }}
15- protocol : TCP
13+ {{- include "wiz-admission-controller.service.ports" . | nindent 4 }}
1614 selector :
1715 {{- include "wiz-admission-controller.selectorLabels" . | nindent 4 }}
1816 {{- include "wiz-admission-controller-enforcement.selectorLabels" . | nindent 4 }}
@@ -29,9 +27,7 @@ metadata:
2927spec :
3028 type : {{ .Values.service.type }}
3129 ports :
32- - port : {{ .Values.service.port }}
33- targetPort : {{ .Values.service.targetPort }}
34- protocol : TCP
30+ {{- include "wiz-admission-controller.service.ports" . | nindent 4 }}
3531 selector :
3632 {{- include "wiz-admission-controller.selectorLabels" . | nindent 4 }}
3733 {{- include "wiz-kubernetes-audit-log-collector.selectorLabels" . | nindent 4 }}
@@ -48,9 +44,7 @@ metadata:
4844spec :
4945 type : {{ .Values.service.type }}
5046 ports :
51- - port : {{ .Values.service.port }}
52- targetPort : {{ .Values.service.targetPort }}
53- protocol : TCP
47+ {{- include "wiz-admission-controller.service.ports" . | nindent 4 }}
5448 selector :
5549 {{- include "wiz-admission-controller.selectorLabels" . | nindent 4 }}
5650 {{- include "wiz-sensor-webhook.selectorLabels" . | nindent 4 }}
@@ -67,9 +61,7 @@ metadata:
6761spec :
6862 type : {{ .Values.service.type }}
6963 ports :
70- - port : {{ .Values.service.port }}
71- targetPort : {{ .Values.service.targetPort }}
72- protocol : TCP
64+ {{- include "wiz-admission-controller.service.ports" . | nindent 4 }}
7365 selector :
7466 {{- include "wiz-admission-controller.selectorLabels" . | nindent 4 }}
7567 {{- include "wiz-debug-webhook.selectorLabels" . | nindent 4 }}
0 commit comments