mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-19 17:16:12 +00:00
generated: run refactor
This commit is contained in:
@@ -35,7 +35,7 @@ func PatchPodStatus(c clientset.Interface, namespace, name string, uid types.UID
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
updatedPod, err := c.CoreV1().Pods(namespace).Patch(context.TODO(), name, types.StrategicMergePatchType, patchBytes, "status")
|
||||
updatedPod, err := c.CoreV1().Pods(namespace).Patch(context.TODO(), name, types.StrategicMergePatchType, patchBytes, metav1.PatchOptions{}, "status")
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("failed to patch status %q for pod %q/%q: %v", patchBytes, namespace, name, err)
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ func TestPatchPodStatus(t *testing.T) {
|
||||
Namespace: ns,
|
||||
Name: name,
|
||||
},
|
||||
})
|
||||
}, metav1.CreateOptions{})
|
||||
|
||||
testCases := []struct {
|
||||
description string
|
||||
|
Reference in New Issue
Block a user