Skip to content

NO-JIRA: Remove Istio configmap workaround from ClusterResourceQuota test - #31444

Open
gcs278 wants to merge 1 commit into
openshift:mainfrom
gcs278:fix-clusterquota-istio-ca-crl
Open

NO-JIRA: Remove Istio configmap workaround from ClusterResourceQuota test#31444
gcs278 wants to merge 1 commit into
openshift:mainfrom
gcs278:fix-clusterquota-istio-ca-crl

Conversation

@gcs278

@gcs278 gcs278 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes the Istio configmap workaround from the ClusterResourceQuota test. The Gateway CA Controller carry patch (PILOT_ENABLE_GATEWAY_API_CA_CERT_ONLY) scopes configmap creation to Gateway namespaces only, so the extra configmaps are no longer created in test namespaces.

The workaround was originally added to account for istio-ca-root-cert being created in every namespace. The configmap name was later renamed to openshift-gw-ca-root-cert via trustBundleName, and with the carry patch, it is only created in namespaces containing Gateway API Gateways.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Updated cluster resource quota testing to fail immediately when creating an additional ConfigMap encounters an error.
    • Removed automatic quota adjustment, status waiting, and retry behavior from the test.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: automatic mode

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 29, 2026
@openshift-ci

openshift-ci Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. labels Jul 29, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@gcs278: This pull request references Jira Issue OCPBUGS-99920, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.0.0) matches configured target version for branch (5.0.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Summary

Istio 1.30 (OSSM 3.4) replaced the istio-ca-root-cert configmap with istio-ca-crl in every namespace. The ClusterResourceQuota test workaround only checked for istio-ca-root-cert, so it failed to account for the extra configmap and reported a false quota failure.

Changes istio-ca-root-certistio-ca-crl and updates the TODO comment from OSSM 3.0.1 to 3.4.1.

🤖 Generated with Claude Code

Instructions 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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Jul 29, 2026
@openshift-ci

openshift-ci Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gcs278
Once this PR has been reviewed and has the lgtm label, please assign bertinatto for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Walkthrough

The cluster resource quota test now immediately fails when creating a ConfigMap returns an error, removing the previous Istio ConfigMap check, quota adjustment, status wait, and retry path.

Changes

Cluster quota failure handling

Layer / File(s) Summary
Immediate ConfigMap creation failure
test/extended/quota/clusterquota.go
ConfigMap creation errors now trigger t.Fatalf without checking for an Istio-generated ConfigMap, changing the quota limit, waiting for status, or retrying creation.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed No dynamic values appear in any Ginkgo title; the PR only edits test body logic, and the existing titles are static strings.
Test Structure And Quality ✅ Passed The change only removes the Istio retry workaround; the test still has explicit quota wait timeouts and cleanup via AddResourceToDelete/namespace teardown.
Microshift Test Compatibility ✅ Passed The changed test already has non-MicroShift apigroup tags ([quota,image,monitoring,template]), and the diff adds no new Ginkgo specs or unsupported APIs.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The modified ClusterResourceQuota test uses only namespace and API object quota checks; it has no node, HA, or topology assumptions and needs no SNO skip.
Topology-Aware Scheduling Compatibility ✅ Passed Only a test workaround was removed; no manifests, operator code, or scheduling constraints were added.
Ote Binary Stdout Contract ✅ Passed No process-level stdout writes were added; the file has no main/TestMain/BeforeSuite/init and no fmt.Print/klog stdout usage.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The changed Ginkgo test only manipulates cluster objects; it has no hardcoded IPs, URL construction, or public internet dependencies.
No-Weak-Crypto ✅ Passed No weak-crypto patterns or secret/token comparisons appear in the touched test file or its package.
Container-Privileges ✅ Passed PR only edits a Go test file; no container/K8s manifests or privilege settings (privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, etc.) were added.
No-Sensitive-Data-In-Logs ✅ Passed The diff adds no new log output; the modified test only tightens error handling and contains no passwords, tokens, PII, or hostnames in logs.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the removal of the Istio ConfigMap workaround from the ClusterResourceQuota test.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-ci openshift-ci Bot added the ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review label Jul 29, 2026
@gcs278
gcs278 force-pushed the fix-clusterquota-istio-ca-crl branch from 99a61b6 to b778857 Compare July 29, 2026 17:00
The workaround accounted for Istio creating extra configmaps in test
namespaces that counted against the ClusterResourceQuota. The Gateway
CA Controller carry patch (PILOT_ENABLE_GATEWAY_API_CA_CERT_ONLY)
scopes configmap creation to Gateway namespaces only, so the extra
configmaps are no longer created in test namespaces.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gcs278 gcs278 changed the title OCPBUGS-99920: Fix ClusterResourceQuota test for Istio 1.30 configmap name change OCPBUGS-99920: Remove Istio configmap workaround from ClusterResourceQuota test Jul 30, 2026
@gcs278
gcs278 force-pushed the fix-clusterquota-istio-ca-crl branch from b778857 to 3e7a41d Compare July 30, 2026 21:56
@gcs278
gcs278 marked this pull request as ready for review July 31, 2026 13:39
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 31, 2026
@openshift-ci
openshift-ci Bot requested review from deads2k and sjenning July 31, 2026 13:41
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@gcs278

gcs278 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Hmm, I see a flake related to this last night in hypershift job. Though, maybe the CI stream for hypershift hasn't gotten the Istio 1.30 bump, it's worth waiting to see.

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 31, 2026
@gcs278 gcs278 changed the title OCPBUGS-99920: Remove Istio configmap workaround from ClusterResourceQuota test NO-JIRA: Remove Istio configmap workaround from ClusterResourceQuota test Jul 31, 2026
@openshift-ci-robot openshift-ci-robot removed jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Jul 31, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@gcs278: This pull request explicitly references no jira issue.

Details

In response to this:

Summary

Removes the Istio configmap workaround from the ClusterResourceQuota test. The Gateway CA Controller carry patch (PILOT_ENABLE_GATEWAY_API_CA_CERT_ONLY) scopes configmap creation to Gateway namespaces only, so the extra configmaps are no longer created in test namespaces.

The workaround was originally added to account for istio-ca-root-cert being created in every namespace. The configmap name was later renamed to openshift-gw-ca-root-cert via trustBundleName, and with the carry patch, it is only created in namespaces containing Gateway API Gateways.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
  • Updated cluster resource quota testing to fail immediately when creating an additional ConfigMap encounters an error.
  • Removed automatic quota adjustment, status waiting, and retry behavior from the test.

Instructions 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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

@gcs278: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-vsphere-ovn-upi 3e7a41d link true /test e2e-vsphere-ovn-upi

Full PR test history. Your PR dashboard.

Details

Instructions 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants