mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Fix e2e test, assignment to entry in nil map
This commit is contained in:
parent
65178fec72
commit
931ad8944d
@ -577,6 +577,9 @@ var _ = SIGDescribe("Job", func() {
|
||||
patchedJob, err = jobClient.Get(context.TODO(), jobName, metav1.GetOptions{})
|
||||
framework.ExpectNoError(err, "Unable to get job %s", jobName)
|
||||
patchedJob.Spec.Suspend = pointer.BoolPtr(false)
|
||||
if patchedJob.Annotations == nil {
|
||||
patchedJob.Annotations = map[string]string{}
|
||||
}
|
||||
patchedJob.Annotations["updated"] = "true"
|
||||
updatedJob, err = e2ejob.UpdateJob(f.ClientSet, ns, patchedJob)
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user