mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Remove incorrect comment
This commit is contained in:
parent
780f4b46e0
commit
b4c27a1501
@ -248,7 +248,7 @@ func (rh *realHistory) CreateControllerRevision(parent metav1.Object, revision *
|
|||||||
// Continue to attempt to create the revision updating the name with a new hash on each iteration
|
// Continue to attempt to create the revision updating the name with a new hash on each iteration
|
||||||
for {
|
for {
|
||||||
hash := HashControllerRevision(revision, collisionCount)
|
hash := HashControllerRevision(revision, collisionCount)
|
||||||
// Update the revisions name and labels
|
// Update the revisions name
|
||||||
clone.Name = ControllerRevisionName(parent.GetName(), hash)
|
clone.Name = ControllerRevisionName(parent.GetName(), hash)
|
||||||
ns := parent.GetNamespace()
|
ns := parent.GetNamespace()
|
||||||
created, err := rh.client.AppsV1().ControllerRevisions(ns).Create(clone)
|
created, err := rh.client.AppsV1().ControllerRevisions(ns).Create(clone)
|
||||||
|
Loading…
Reference in New Issue
Block a user