Skip to content
Snippets Groups Projects
Verified Commit 2d4aded0 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(network-policies): Add shared network policy for testing

parent e657266c
No related branches found
No related tags found
No related merge requests found
...@@ -5,4 +5,6 @@ resources: ...@@ -5,4 +5,6 @@ resources:
- namespace.yaml - namespace.yaml
- repository.yaml - repository.yaml
- release.yaml - release.yaml
- ../../../shared/networkpolicies/allow-from-ingress.yaml
patchesStrategicMerge:
- networkpolicy.yaml - networkpolicy.yaml
...@@ -7,8 +7,3 @@ spec: ...@@ -7,8 +7,3 @@ spec:
podSelector: podSelector:
matchLabels: matchLabels:
app: harbor app: harbor
ingress:
- from:
- namespaceSelector:
matchLabels:
ingress.shivering-isles.com/network-access-required: "true"
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-ingress
spec:
ingress:
- from:
- namespaceSelector:
matchLabels:
ingress.shivering-isles.com/network-access-required: "true"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment