Skip to content

Commit 269f2d1

Browse files
Merge pull request openshift#1088 from SchSeba/merge-bot-master
Merge https://github.com/k8snetworkplumbingwg/sriov-network-operator:master into main
2 parents dd01ae2 + d9bd89c commit 269f2d1

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

bundle/manifests/sriov-network-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ metadata:
100100
categories: Networking
101101
certified: "false"
102102
containerImage: quay.io/openshift/origin-sriov-network-operator:4.19
103-
createdAt: "2025-04-29T23:49:29Z"
103+
createdAt: "2025-05-11T23:49:34Z"
104104
description: An operator for configuring SR-IOV components and initializing SRIOV
105105
network devices in Openshift cluster.
106106
features.operators.openshift.io/cnf: "false"

manifests/stable/sriov-network-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ metadata:
100100
categories: Networking
101101
certified: "false"
102102
containerImage: quay.io/openshift/origin-sriov-network-operator:4.19
103-
createdAt: "2025-04-29T23:49:29Z"
103+
createdAt: "2025-05-11T23:49:34Z"
104104
description: An operator for configuring SR-IOV components and initializing SRIOV
105105
network devices in Openshift cluster.
106106
features.operators.openshift.io/cnf: "false"

pkg/daemon/daemon.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,16 +666,19 @@ func (dn *NodeReconciler) annotate(
666666
funcLog := log.Log.WithName("annotate")
667667

668668
funcLog.Info(fmt.Sprintf("apply '%s' annotation for node", annotationState))
669-
err := utils.AnnotateNode(ctx, desiredNodeState.Name, consts.NodeDrainAnnotation, annotationState, dn.client)
670-
if err != nil {
671-
log.Log.Error(err, "Failed to annotate node")
669+
if err := utils.AnnotateNode(ctx,
670+
desiredNodeState.Name,
671+
consts.NodeDrainAnnotation,
672+
annotationState, dn.client); err != nil {
673+
funcLog.Error(err, "Failed to annotate node")
672674
return err
673675
}
674676

675677
funcLog.Info(fmt.Sprintf("apply '%s' annotation for nodeState", annotationState))
676-
if err := utils.AnnotateObject(context.Background(), desiredNodeState,
678+
if err := utils.AnnotateObject(ctx, desiredNodeState,
677679
consts.NodeStateDrainAnnotation,
678680
annotationState, dn.client); err != nil {
681+
funcLog.Error(err, "Failed to annotate nodeState")
679682
return err
680683
}
681684

0 commit comments

Comments
 (0)