Skip to content

Commit ef98c7d

Browse files
jsafranehongkailiu
andcommitted
Update pkg/operator/csi/csidrivernodeservicecontroller/csi_driver_node_service_controller.go
Co-authored-by: Hongkai Liu <[email protected]>
1 parent df9dd3d commit ef98c7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/operator/csi/csidrivernodeservicecontroller/csi_driver_node_service_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (c *CSIDriverNodeServiceController) isProgressing(daemonSet *appsv1.DaemonS
269269
// Any subsequent missing replicas must be caused by a node added / removed / rebooted /
270270
// pod manually killed, which then does not result in Progressing=true.
271271
lastStableGeneration := daemonSet.Annotations[stableGenerationAnnotationName]
272-
currentGeneration := strconv.FormatInt(int64(daemonSet.Generation), 10)
272+
currentGeneration := strconv.FormatInt(daemonSet.Generation, 10)
273273
if lastStableGeneration == currentGeneration {
274274
// The previous reconfiguration has completed in the past.
275275
return false, ""
@@ -339,7 +339,7 @@ func (c *CSIDriverNodeServiceController) syncDeleting(ctx context.Context, opSpe
339339

340340
func (c *CSIDriverNodeServiceController) storeLastStableGeneration(ctx context.Context, syncContext factory.SyncContext, daemonSet *appsv1.DaemonSet) (*appsv1.DaemonSet, error) {
341341
lastStableGeneration := daemonSet.Annotations[stableGenerationAnnotationName]
342-
currentGeneration := strconv.FormatInt(int64(daemonSet.Generation), 10)
342+
currentGeneration := strconv.FormatInt(daemonSet.Generation, 10)
343343
if lastStableGeneration == currentGeneration {
344344
return daemonSet, nil
345345
}

0 commit comments

Comments
 (0)