[bitnami/clickhouse] fix: 🐛 Add allowExternalEgress to avoid breaking istio (#23031)

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
Signed-off-by: Javier J. Salmerón-García <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2024-02-05 16:11:52 +01:00
committed by GitHub
parent 8d3e19a28f
commit b62cb0f76b
4 changed files with 21 additions and 9 deletions

View File

@@ -22,6 +22,10 @@ spec:
policyTypes:
- Ingress
- Egress
{{- if .Values.networkPolicy.allowExternalEgress }}
egress:
- {}
{{- else }}
egress:
# Allow dns resolution
- ports:
@@ -81,6 +85,7 @@ spec:
{{- if .Values.networkPolicy.extraEgress }}
{{- include "common.tplvalues.render" ( dict "value" .Values.networkPolicy.extraEgress "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
ingress:
- ports:
- port: {{ $.Values.containerPorts.http }}
@@ -104,6 +109,9 @@ spec:
{{- end }}
{{- if not .Values.networkPolicy.allowExternal }}
from:
- podSelector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 14 }}
app.kubernetes.io/component: clickhouse
- podSelector:
matchLabels:
{{ include "common.names.fullname" . }}-client: "true"