Skip to content

Commit

Permalink
add logical operator validation
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronreynoza committed Dec 16, 2024
1 parent 943ee4d commit 2be322c
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ apiVersion: v1
kind: Namespace
metadata:
name: ${ns}
# tried to implement OR operator but couldn't find a syntax for it.
%{ if ns == "mojaloop" ~}
labels:
istio-injection: enabled
%{ endif ~}
%{ if ns == "mcm" ~}
%{ if ns in ["mojaloop", "mcm"] ~}
labels:
istio-injection: enabled
%{ endif ~}
Expand Down

0 comments on commit 2be322c

Please sign in to comment.