UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Issue 24 adding pull secret arg for kyverno policy

Merged Ronnie Webb requested to merge issue-24 into main
Compare and
8 files
+ 81
43
Compare changes
  • Side-by-side
  • Inline
Files
8
{{- if and .Values.networkPolicies.enabled .Values.registries }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-egress-container-registry
namespace: {{ .Release.Namespace }}
labels: {{ include "kyverno.labels" . | nindent 4 }}
app: kyverno
spec:
egress:
- to:
- ipBlock:
cidr: 0.0.0.0/0
except:
- 169.254.169.254/32
ports: {{ toYaml .Values.registries.ports | nindent 6 }}
podSelector:
matchLabels: {{ include "kyverno.labels" . | nindent 8 }}
policyTypes:
- Egress
{{- end }}
\ No newline at end of file
Loading