Skip to content

Commit

Permalink
fix(namespace): for access dashboard (#701)
Browse files Browse the repository at this point in the history
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
  • Loading branch information
zdtsw committed Nov 3, 2023
1 parent b5db757 commit f913da6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion controllers/dscinitialization/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (r *DSCInitializationReconciler) reconcileDefaultNetworkPolicy(ctx context.
},
},
},
{ // OR logic
{ // OR logic for ROSA
From: []netv1.NetworkPolicyPeer{
{ // need this for access dashboard
NamespaceSelector: &metav1.LabelSelector{
Expand All @@ -225,6 +225,17 @@ func (r *DSCInitializationReconciler) reconcileDefaultNetworkPolicy(ctx context.
},
},
},
{ // OR logic for PSI
From: []netv1.NetworkPolicyPeer{
{ // need this for access dashboard
NamespaceSelector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"kubernetes.io/metadata.name": "openshift-host-network",
},
},
},
},
},
},
PolicyTypes: []netv1.PolicyType{
netv1.PolicyTypeIngress,
Expand Down

0 comments on commit f913da6

Please sign in to comment.