Skip to content

Commit 4ea2258

Browse files
committed
fix undefined ctx
1 parent 7742c25 commit 4ea2258

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

topo/node/drivenets/drivenets.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ func (n *Node) cdnosDelete(ctx context.Context) error {
457457
// - ownerReference is Cdnos/<node>
458458
func (n *Node) servicesForNode(ctx context.Context) ([]corev1.Service, error) {
459459
// Use a short-lived background context for API calls to avoid parent ctx deadline cancellations.
460+
_ = ctx // ctx is intentionally unused to avoid parent deadline cancellations
460461
listCtx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
461462
defer cancel()
462463
list, err := n.KubeClient.CoreV1().Services(n.Namespace).List(listCtx, metav1.ListOptions{})

0 commit comments

Comments
 (0)