Skip to content

Commit 176f8d0

Browse files
authored
Merge pull request #1965 from k8s-infra-cherrypick-robot/cherry-pick-1960-to-release-1.30
[release-1.30] fix: incorrect status.creationTime value in snapshot creation with useDataPlaneAPI: “true”
2 parents 295645e + ea56329 commit 176f8d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/azurefile/controllerserver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ func (d *Driver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequ
895895
}
896896

897897
itemSnapshot = snapshotShare.Snapshot()
898-
itemSnapshotTime = properties.LastModified()
898+
itemSnapshotTime = properties.Date()
899899
itemSnapshotQuota = properties.Quota()
900900
} else {
901901
snapshotShare, err := d.cloud.FileClient.WithSubscriptionID(subsID).CreateFileShare(ctx, rgName, accountName, &fileclient.ShareOptions{Name: fileShareName, Metadata: map[string]*string{snapshotNameKey: &snapshotName}}, snapshotsExpand)

0 commit comments

Comments
 (0)