argo-cd/manifests/base/notification/argocd-notifications-controller-network-policy.yaml
Nicholas Morey b652a5c8ee
feat(manifests): add app.kubernetes.io labels to notifications-controller resources (#12348)
* feat(manifests): add app.kubernetes.io lables to notifications-controller resources

Added to any notifications-controller resources. The argocd-notifications-controller-metrics service already has a name label, so I kept that as is for backwards compatibility.

Signed-off-by: Nicholas Morey <nicholas@morey.tech>

* fix: remove duplicate `labels:`

Signed-off-by: Nicholas Morey <nicholas@morey.tech>

---------

Signed-off-by: Nicholas Morey <nicholas@morey.tech>
2023-03-14 14:48:16 -04:00

20 lines
525 B
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
labels:
app.kubernetes.io/component: notifications-controller
app.kubernetes.io/name: argocd-notifications-controller
app.kubernetes.io/part-of: argocd
name: argocd-notifications-controller-network-policy
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: argocd-notifications-controller
ingress:
- from:
- namespaceSelector: { }
ports:
- protocol: TCP
port: 9001
policyTypes:
- Ingress