Skip to content

Commit db6aa1e

Browse files
committed
Fix DRA NetworkPolicy: add allow-all egress rule
The DRA NetworkPolicy declares both Ingress and Egress policy types but has no egress rules, which blocks all outbound traffic from the DRA kubelet plugin pod. This prevents the plugin from reaching the API server to create/update ResourceSlices. Add an allow-all egress rule. Signed-off-by: Anthony Byrne <abyrne@redhat.com>
1 parent edbb3a3 commit db6aa1e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/networkpolicy/networkpolicy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ func (np *networkPolicy) DRANetworkPolicy(namespace string) *networkingv1.Networ
201201
"app.kubernetes.io/component": "dra",
202202
},
203203
},
204+
Egress: []networkingv1.NetworkPolicyEgressRule{
205+
{}, // Allow all egress — DRA kubelet plugin needs API server access for ResourceSlice management
206+
},
204207
PolicyTypes: []networkingv1.PolicyType{
205208
networkingv1.PolicyTypeIngress,
206209
networkingv1.PolicyTypeEgress,

0 commit comments

Comments
 (0)