UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 2b66c9e9 authored by Micah Nagel's avatar Micah Nagel Committed by Ryan Garcia
Browse files

NP conditional for Flux NP

parent 6f982d6f
No related branches found
No related tags found
1 merge request!2021Fix conditional for Flux <-> Monitoring Network Policy
{{- if and .Values.monitoring.enabled (dig "grafana" "enabled" true .Values.monitoring.values) }}
{{- if or (and .Values.networkPolicies.enabled (dig "networkPolicies" "enabled" true .Values.monitoring.values)) (and (not .Values.networkPolicies.enabled) (dig "networkPolicies" "enabled" false .Values.monitoring.values)) }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
......@@ -21,4 +22,5 @@ spec:
ports:
- port: 3000
protocol: TCP
{{- end }}
\ No newline at end of file
{{- end }}
{{- end }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment