Skip to content

Commit 8179258

Browse files
committed
add nolint for deprecated SelfLink field
1 parent c73d221 commit 8179258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/renamepvc/renamepvc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (o *renamePVCOptions) rename(
189189
newPvc.Name = o.newName
190190
newPvc.UID = ""
191191
newPvc.CreationTimestamp = metav1.Now()
192-
newPvc.SelfLink = ""
192+
newPvc.SelfLink = "" // nolint: staticcheck // to keep compatibility with older versions
193193
newPvc.ResourceVersion = ""
194194
newPvc.Namespace = o.targetNamespace
195195

0 commit comments

Comments
 (0)