Skip to content

Commit 51555be

Browse files
authored
[bitnami/pytorch] fix: 🐛 Add allowExternalEgress to avoid breaking istio (#22958)
Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
1 parent f40111a commit 51555be

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

bitnami/pytorch/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ maintainers:
3333
name: pytorch
3434
sources:
3535
- https://github.com/bitnami/charts/tree/main/bitnami/pytorch
36-
version: 3.7.0
36+
version: 3.8.0

bitnami/pytorch/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ The command removes all the Kubernetes components associated with the chart and
186186
| `service.headless.annotations` | Annotations for the headless service. | `{}` |
187187
| `networkPolicy.enabled` | Specifies whether a NetworkPolicy should be created | `true` |
188188
| `networkPolicy.allowExternal` | Don't require server label for connections | `true` |
189+
| `networkPolicy.allowExternalEgress` | Allow the pod to access any range of port and all destinations. | `true` |
189190
| `networkPolicy.extraIngress` | Add extra ingress rules to the NetworkPolice | `[]` |
190191
| `networkPolicy.extraEgress` | Add extra ingress rules to the NetworkPolicy | `[]` |
191192
| `networkPolicy.ingressNSMatchLabels` | Labels to match to allow traffic from other namespaces | `{}` |

bitnami/pytorch/templates/networkpolicy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ spec:
2020
policyTypes:
2121
- Ingress
2222
- Egress
23+
{{- if .Values.networkPolicy.allowExternalEgress }}
24+
egress:
25+
- {}
26+
{{- else }}
2327
egress:
2428
# Allow dns resolution
2529
- ports:
@@ -41,6 +45,7 @@ spec:
4145
{{- if .Values.networkPolicy.extraEgress }}
4246
{{- include "common.tplvalues.render" ( dict "value" .Values.rts.networkPolicy.extraEgress "context" $ ) | nindent 4 }}
4347
{{- end }}
48+
{{- end }}
4449
ingress:
4550
# Allow inbound connections
4651
- ports:

bitnami/pytorch/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ networkPolicy:
477477
## (with the correct destination port).
478478
##
479479
allowExternal: true
480+
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
481+
##
482+
allowExternalEgress: true
480483
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolice
481484
## e.g:
482485
## extraIngress:

0 commit comments

Comments
 (0)