1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-30 03:15:05 +00:00

fix: Adjust chart templates to handle hostNetwork set to true (#9864)

* fix(kyverno-chart): Adjust templates to handle hostNetwork set to true

Signed-off-by: Chahdra Konlack <chahdra.konlack@equisoft.com>

* Change containerPort of cleanup-controller to use server port instead

Signed-off-by: Chahdra Konlack <chahdra.konlack@equisoft.com>

---------

Signed-off-by: Chahdra Konlack <chahdra.konlack@equisoft.com>
Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
Chahdro 2024-03-12 08:29:01 -04:00 committed by GitHub
parent 1e09f22e59
commit bb0cf4c985
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View file

@ -189,10 +189,10 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- containerPort: 9443
- containerPort: {{ .Values.admissionController.webhookServer.port }}
name: https
protocol: TCP
- containerPort: 8000
- containerPort: {{ .Values.admissionController.metering.port }}
name: metrics-port
protocol: TCP
{{ if .Values.admissionController.profiling.enabled }}

View file

@ -36,7 +36,7 @@ metadata:
spec:
ports:
- port: {{ .Values.admissionController.metricsService.port }}
targetPort: 8000
targetPort: {{ .Values.admissionController.metering.port }}
protocol: TCP
name: metrics-port
{{- if and (eq .Values.admissionController.metricsService.type "NodePort") (not (empty .Values.admissionController.metricsService.nodePort)) }}

View file

@ -80,10 +80,10 @@ spec:
image: {{ include "kyverno.cleanup-controller.image" (dict "globalRegistry" .Values.global.image.registry "image" .Values.cleanupController.image "defaultTag" .Chart.AppVersion) | quote }}
imagePullPolicy: {{ .Values.cleanupController.image.pullPolicy }}
ports:
- containerPort: 9443
- containerPort: {{ .Values.cleanupController.server.port }}
name: https
protocol: TCP
- containerPort: 8000
- containerPort: {{ .Values.cleanupController.metering.port }}
name: metrics
protocol: TCP
{{ if .Values.cleanupController.profiling.enabled }}

View file

@ -39,7 +39,7 @@ metadata:
spec:
ports:
- port: {{ .Values.cleanupController.metricsService.port }}
targetPort: 8000
targetPort: {{ .Values.cleanupController.metering.port }}
protocol: TCP
name: metrics-port
{{- if and (eq .Values.cleanupController.metricsService.type "NodePort") (not (empty .Values.cleanupController.metricsService.nodePort)) }}