fix syntax error

This commit is contained in:
Waylon S. Walker 2025-02-23 20:50:55 -06:00
parent a27e9e871f
commit 2131b4c59b

View file

@ -1,14 +1,14 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {? {.Values.name: ''} : ''}
namespace: {? {.Values.namespace | default .Values.name: ''} : ''}
name: {{ .Values.name }}
namespace: {{ .Values.namespace | default .Values.name }}
labels:
service: {? {.Values.name: ''} : ''}
service: {{ .Values.name }}
spec:
podSelector:
matchLabels:
service: {? {.Values.name: ''} : ''}
service: {{ .Values.name }}
policyTypes:
- Ingress
- Egress
@ -19,8 +19,9 @@ spec:
name: ingress-nginx
ports:
- protocol: TCP
port: {? {.Values.port: ''} : ''}
egress: {}
port: {{ .Values.port }}
egress:
- {}
# TODO, optionally add egress restriction.
# - to:
# - namespaceSelector: {}