Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Zhurakivskyy <[email protected]>
  • Loading branch information
ozhuraki committed Jul 10, 2024
1 parent e019b73 commit 49ef29b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/nfd-worker/nfd-worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ type nfdWorker struct {
kubernetesNamespace string
grpcClient pb.LabelerClient
healthServer *grpc.Server
k8sClient k8sclient.Interface
k8sClient k8sclient.Interface
nfdClient *nfdclient.Clientset
stop chan struct{} // channel for signaling stop
featureSources []source.FeatureSource
numberOfFeatureSourceErrors int
labelSources []source.LabelSource
ownerReference []metav1.OwnerReference
ownerReference []metav1.OwnerReference
}

// This ticker can represent infinite and normal intervals.
Expand Down Expand Up @@ -807,9 +807,9 @@ func (m *nfdWorker) updateNodeFeatureObject(labels Labels) error {
}

nfr.Status = nfdv1alpha1.NodeFeatureStatus{
LastAppliedAt: metav1.Time{Time: time.Now().UTC()},
NumberOfFeatures: len(m.featureSources),
NumberOfLabels: len(m.labelSources),
LastAppliedAt: metav1.Time{Time: time.Now().UTC()},
NumberOfFeatures: len(m.featureSources),
NumberOfLabels: len(m.labelSources),
}

klog.InfoS("creating NodeFeature object", "nodefeature", klog.KObj(nfr))
Expand All @@ -832,9 +832,9 @@ func (m *nfdWorker) updateNodeFeatureObject(labels Labels) error {
Labels: labels,
}
nfrUpdated.Status = nfdv1alpha1.NodeFeatureStatus{
LastAppliedAt: metav1.Time{Time: time.Now().UTC()},
NumberOfFeatures: len(m.featureSources),
NumberOfLabels: len(m.labelSources),
LastAppliedAt: metav1.Time{Time: time.Now().UTC()},
NumberOfFeatures: len(m.featureSources),
NumberOfLabels: len(m.labelSources),
}
if !apiequality.Semantic.DeepEqual(nfr, nfrUpdated) {
klog.InfoS("updating NodeFeature object", "nodefeature", klog.KObj(nfr))
Expand Down

0 comments on commit 49ef29b

Please sign in to comment.