diff --git a/component/prometheus-netpol.jsonnet b/component/prometheus-netpol.jsonnet index 44c133dc..76d60fc2 100644 --- a/component/prometheus-netpol.jsonnet +++ b/component/prometheus-netpol.jsonnet @@ -55,5 +55,5 @@ local netpol = }; { - '40_netpol': netpol, + [if params.helm_values.networkPolicy.enabled then '40_netpol']: netpol, }