[bitnami/tensorflow-resnet] feat: Add allowExternalEgress (#22967)

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2024-02-01 14:11:52 +01:00
committed by GitHub
parent 653f7ca055
commit f40111a812
4 changed files with 10 additions and 1 deletions

View File

@@ -20,6 +20,10 @@ spec:
policyTypes:
- Ingress
- Egress
{{- if .Values.networkPolicy.allowExternalEgress }}
egress:
- {}
{{- else }}
egress:
- ports:
# Allow dns resolution
@@ -37,6 +41,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.server }}