From 3612d901894fb26d88c5fa59138b44cbe11f563c Mon Sep 17 00:00:00 2001 From: mprokopc Date: Thu, 23 Jan 2025 11:38:42 +0100 Subject: [PATCH] fix(gateway-operator): changeable host network value for gateway operator --- charts/gateway-operator/templates/deployment.yaml | 1 + charts/gateway-operator/values.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/charts/gateway-operator/templates/deployment.yaml b/charts/gateway-operator/templates/deployment.yaml index 0466ec977..63e9ad705 100644 --- a/charts/gateway-operator/templates/deployment.yaml +++ b/charts/gateway-operator/templates/deployment.yaml @@ -31,6 +31,7 @@ spec: {{ include "kong.renderTpl" (dict "value" .Values.podLabels "context" $) | nindent 8 }} {{- end }} spec: + hostNetwork: {{ .Values.hostNetwork }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | nindent 8 }} diff --git a/charts/gateway-operator/values.yaml b/charts/gateway-operator/values.yaml index 8c5ff2f31..2319eebb7 100644 --- a/charts/gateway-operator/values.yaml +++ b/charts/gateway-operator/values.yaml @@ -117,3 +117,7 @@ certsDir: # Override the default deployment selector labels. This is useful if you don't want # to use the defaults or are migrating to this chart and want to use existing labels. # selectorLabels: [] + +# Deploy the deployment in host network. +# May be required to set to true if Calico CNI is used. +hostNetwork: false \ No newline at end of file