Skip to content

Commit

Permalink
Update CNV network policy (#903)
Browse files Browse the repository at this point in the history
* Update CNV network policy

* Update deploy/templates/nstemplatetiers/base/ns_stage.yaml

Co-authored-by: Alexey Kazakov <[email protected]>

---------

Co-authored-by: Alexey Kazakov <[email protected]>
Co-authored-by: Francisc Munteanu <[email protected]>
  • Loading branch information
3 people authored Oct 26, 2023
1 parent febf379 commit 5d1faa7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion deploy/templates/nstemplatetiers/base/ns_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,18 @@ objects:
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-openshift-virtualization-os-images
name: allow-from-openshift-virtualization-namespaces
namespace: ${SPACE_NAME}-dev
spec:
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: openshift-virtualization-os-images
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: openshift-cnv
podSelector: {}
policyTypes:
- Ingress
Expand Down
6 changes: 5 additions & 1 deletion deploy/templates/nstemplatetiers/base/ns_stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,18 @@ objects:
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-openshift-virtualization-os-images
name: allow-from-openshift-virtualization-namespaces
namespace: ${SPACE_NAME}-stage
spec:
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: openshift-virtualization-os-images
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: openshift-cnv
podSelector: {}
policyTypes:
- Ingress
Expand Down
6 changes: 5 additions & 1 deletion deploy/templates/nstemplatetiers/base1ns/ns_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,18 @@ objects:
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-openshift-virtualization-os-images
name: allow-from-openshift-virtualization-namespaces
namespace: ${SPACE_NAME}-dev
spec:
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: openshift-virtualization-os-images
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: openshift-cnv
podSelector: {}
policyTypes:
- Ingress
Expand Down

0 comments on commit 5d1faa7

Please sign in to comment.