{{- if and .Values.networkPolicy.enabled .Values.collector.networkPolicy.enabled .Values.collector.networkPolicy.ingressRules -}} {{- $extraVals := dict "Name" (include "jaeger.collector.name" .) "Component" "collector" "ComponentValues" .Values.collector -}} {{- $npVals := merge $extraVals . -}} {{ include "jaeger.ingress.networkPolicy" $npVals }} {{- end -}}