UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Resolve "Add custom network policies"

Merged Jacob Kershaw requested to merge 244-add-custom-network-policies into main
5 files
+ 20
2
Compare changes
  • Side-by-side
  • Inline
Files
5
{{- /* Adds additional network policies based on values */ -}}
{{- if .Values.networkPolicies.enabled }}
{{- range $policy := .Values.networkPolicies.additionalPolicies -}}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ $policy.name }}
spec:
{{ tpl ($policy.spec | toYaml) $ | nindent 2 }}
---
{{- end }}
{{- end }}
\ No newline at end of file
Loading