fix: disable VAP/VAPB check in image registry policy test case for MSFT environments#5385
Conversation
remove failing and redundant existence assertion https://redhat.atlassian.net/browse/ARO-27298
|
/test stage-e2e-parallel |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the Image Registry Policy E2E test to stop asserting the presence of ValidatingAdmissionPolicy/Binding resources and only validate the allowlist ConfigMap content.
Changes:
- Removed checks that
image-registry-allowlist-policy(ValidatingAdmissionPolicy) exists - Removed checks that
image-registry-allowlist-policy-binding(ValidatingAdmissionPolicyBinding) exists - Left ConfigMap allowlist validation as the primary assertion
|
potential follow-up: rework the deny test to run everywhere by removing the binding read and inferring the mode from behavior |
|
@raelga @avollmer-redhat please review and provide comments or lgtm |
|
+1 on this PR. I traced the identity/kubeconfig path end-to-end and the gate is exactly the right scope. Sharing the trace for ARO-22152 context. Why this can't be an RBAC chase: The Prow runner ( The This isn't an RBAC oversight to fix. It's the same constraint that makes Confirmed on Aside: the upstream For ARO-22152: continuous policy-effect verification in INT/STG/PROD would need either (a) a separate MSFT-side mgmt-cluster verifier identity (new Prow secret, new SP in the MS tenant, separate code path), or (b) propagating VAP enforcement to the customer worker clusters via HyperShift rendering so it's testable through the customer-tenant kubeconfig. Both are real follow-up conversations and out of scope here. No change requested — happy to ship this as-is. /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mbukatov, mvacula02, raelga The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test stage-e2e-parallel |
|
/hold until we see the whole test passing in Stage |
|
/test prod-e2e-parallel |
|
/unhold to not delay batch follow-up: address other potential issues with the test, consider #5391 |
|
/unhold |
|
@mvacula02: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
ARO-27298
What
Remove object existence check for ValidationAdmissionPolicy and ValidatingAdmissionPolicyBinding
Why
deployment happened. The namespaced ConfigMap check covers that already
Testing
This is a test bug fix.
PR Checklist