2022-10-31 15:52:45 +00:00
|
|
|
{{- if and .Values.global.networkPolicy.create .Values.global.networkPolicy.defaultDenyIngress }}
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: NetworkPolicy
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
{{- include "argo-cd.labels" (dict "context" .) | nindent 4 }}
|
|
|
|
name: {{ template "argo-cd.fullname" . }}-default-deny
|
2023-04-18 16:35:01 +00:00
|
|
|
namespace: {{ .Release.Namespace | quote }}
|
2022-10-31 15:52:45 +00:00
|
|
|
spec:
|
|
|
|
podSelector: {}
|
|
|
|
policyTypes:
|
|
|
|
- Ingress
|
|
|
|
{{- end }}
|