mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 09:57:52 +00:00
generated: run refactor
This commit is contained in:
@@ -1159,7 +1159,7 @@ func TestExpectationsOnRecreate(t *testing.T) {
|
||||
}
|
||||
|
||||
oldRS := newReplicaSet(1, map[string]string{"foo": "bar"})
|
||||
oldRS, err := client.AppsV1().ReplicaSets(oldRS.Namespace).Create(context.TODO(), oldRS)
|
||||
oldRS, err := client.AppsV1().ReplicaSets(oldRS.Namespace).Create(context.TODO(), oldRS, metav1.CreateOptions{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -1240,7 +1240,7 @@ func TestExpectationsOnRecreate(t *testing.T) {
|
||||
|
||||
newRS := oldRS.DeepCopy()
|
||||
newRS.UID = uuid.NewUUID()
|
||||
newRS, err = client.AppsV1().ReplicaSets(newRS.Namespace).Create(context.TODO(), newRS)
|
||||
newRS, err = client.AppsV1().ReplicaSets(newRS.Namespace).Create(context.TODO(), newRS, metav1.CreateOptions{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
@@ -64,7 +64,7 @@ func updateReplicaSetStatus(c appsclient.ReplicaSetInterface, rs *apps.ReplicaSe
|
||||
fmt.Sprintf("sequence No: %v->%v", rs.Status.ObservedGeneration, newStatus.ObservedGeneration))
|
||||
|
||||
rs.Status = newStatus
|
||||
updatedRS, updateErr = c.UpdateStatus(context.TODO(), rs)
|
||||
updatedRS, updateErr = c.UpdateStatus(context.TODO(), rs, metav1.UpdateOptions{})
|
||||
if updateErr == nil {
|
||||
return updatedRS, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user