Skip to content

Commit

Permalink
UPSTREAM: 126994 Add required FieldManager for validatingadmissionpol…
Browse files Browse the repository at this point in the history
…icy 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.
  • Loading branch information
dgoodwin committed Aug 29, 2024
1 parent a092ee7 commit 790f4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/apimachinery/validatingadmissionpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ var _ = SIGDescribe("ValidatingAdmissionPolicy [Privileged:ClusterAdmin]", func(
"touched": time.Now().String(),
"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 true, nil
Expand Down

0 comments on commit 790f4dd

Please sign in to comment.