mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Add required FieldManager for validatingadmissionpolicy e2e
This line would fail if the code path happened to execute, which may not happen in upstream, but does trigger occasionally in OpenShift testing.
This commit is contained in:
parent
6de748d97b
commit
98114a9fdf
@ -370,7 +370,7 @@ var _ = SIGDescribe("ValidatingAdmissionPolicy [Privileged:ClusterAdmin]", func(
|
|||||||
"touched": time.Now().String(),
|
"touched": time.Now().String(),
|
||||||
"random": fmt.Sprintf("%d", rand.Int()),
|
"random": fmt.Sprintf("%d", rand.Int()),
|
||||||
})
|
})
|
||||||
_, err := client.AdmissionregistrationV1().ValidatingAdmissionPolicies().Apply(ctx, applyConfig, metav1.ApplyOptions{})
|
_, err := client.AdmissionregistrationV1().ValidatingAdmissionPolicies().Apply(ctx, applyConfig, metav1.ApplyOptions{FieldManager: "validatingadmissionpolicy-e2e"})
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
return true, nil
|
return true, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user