Skip to content

OCPBUGS-74508: Remove GatewayAPI featuregates#2742

Open
rhamini3 wants to merge 1 commit intoopenshift:masterfrom
rhamini3:gwapi-fg
Open

OCPBUGS-74508: Remove GatewayAPI featuregates#2742
rhamini3 wants to merge 1 commit intoopenshift:masterfrom
rhamini3:gwapi-fg

Conversation

@rhamini3
Copy link

@rhamini3 rhamini3 commented Mar 4, 2026

API PR to remove featuregates for gatewayAPI and gatewayAPIController

@openshift-ci-robot
Copy link

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: LGTM 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 Mar 4, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 4, 2026

Hello @rhamini3! Some important instructions when contributing to openshift/api:
API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Mar 4, 2026
@openshift-ci-robot
Copy link

@rhamini3: This pull request references Jira Issue OCPBUGS-74508, which is valid.

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

Requesting review from QA contact:
/cc @ShudiLi

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

Details

In response to this:

API PR to remove featuregates for gatewayAPI and gatewayAPIController

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 requested a review from ShudiLi March 4, 2026 20:32
@openshift-ci openshift-ci bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 4, 2026
@qodo-code-review
Copy link

Review Summary by Qodo

Remove GatewayAPI and GatewayAPIController feature gates

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Remove GatewayAPI and GatewayAPIController feature gate definitions
• Delete legacy feature gate entries from configuration files
• Update feature gate documentation and manifest files
• Clean up feature gate references across multiple deployment profiles
Diagram
flowchart LR
  FG["Feature Gate Definitions"]
  LFG["Legacy Feature Gates"]
  DOC["Documentation & Manifests"]
  REMOVED["GatewayAPI & GatewayAPIController Removed"]
  FG -- "Delete gate definitions" --> REMOVED
  LFG -- "Remove legacy entries" --> REMOVED
  DOC -- "Update references" --> REMOVED
Loading

Grey Divider

File Changes

1. features/features.go ✨ Enhancement +0/-21

Remove GatewayAPI feature gate definitions

features/features.go


2. features/legacyfeaturegates.go ✨ Enhancement +0/-2

Remove GatewayAPI from legacy gates list

features/legacyfeaturegates.go


3. payload-command/render/legacyfeaturegates.go ✨ Enhancement +0/-2

Remove GatewayAPI from legacy gates list

payload-command/render/legacyfeaturegates.go


View more (9)
4. features.md 📝 Documentation +0/-2

Remove GatewayAPI rows from feature matrix

features.md


5. payload-manifests/featuregates/featureGate-4-10-Hypershift-Default.yaml ⚙️ Configuration changes +0/-6

Remove GatewayAPI entries from default profile

payload-manifests/featuregates/featureGate-4-10-Hypershift-Default.yaml


6. payload-manifests/featuregates/featureGate-4-10-Hypershift-DevPreviewNoUpgrade.yaml ⚙️ Configuration changes +0/-6

Remove GatewayAPI entries from dev preview profile

payload-manifests/featuregates/featureGate-4-10-Hypershift-DevPreviewNoUpgrade.yaml


7. payload-manifests/featuregates/featureGate-4-10-Hypershift-OKD.yaml ⚙️ Configuration changes +0/-6

Remove GatewayAPI entries from OKD profile

payload-manifests/featuregates/featureGate-4-10-Hypershift-OKD.yaml


8. payload-manifests/featuregates/featureGate-4-10-Hypershift-TechPreviewNoUpgrade.yaml ⚙️ Configuration changes +0/-6

Remove GatewayAPI entries from tech preview profile

payload-manifests/featuregates/featureGate-4-10-Hypershift-TechPreviewNoUpgrade.yaml


9. payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-Default.yaml ⚙️ Configuration changes +0/-6

Remove GatewayAPI entries from default profile

payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-Default.yaml


10. payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-DevPreviewNoUpgrade.yaml ⚙️ Configuration changes +0/-6

Remove GatewayAPI entries from dev preview profile

payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-DevPreviewNoUpgrade.yaml


11. payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-OKD.yaml ⚙️ Configuration changes +0/-6

Remove GatewayAPI entries from OKD profile

payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-OKD.yaml


12. payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-TechPreviewNoUpgrade.yaml ⚙️ Configuration changes +0/-6

Remove GatewayAPI entries from tech preview profile

payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-TechPreviewNoUpgrade.yaml


Grey Divider

Qodo Logo

@qodo-code-review
Copy link

qodo-code-review bot commented Mar 4, 2026

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Dropped gates from status lists 🐞 Bug ⛯ Reliability
Description
Removing GatewayAPI/GatewayAPIController from the rendered FeatureGate payload manifests means they
will no longer appear in FeatureGate.status.featureGates. Since the API explicitly requires
operators (other than CVO/CCO) to read .status.featureGates and make operands match, any remaining
consumer that expects these gates can silently change behavior or fail after upgrade when the gates
disappear.
Code

payload-manifests/featuregates/featureGate-4-10-Hypershift-Default.yaml[L295-300]

-                    {
-                        "name": "GatewayAPI"
-                    },
-                    {
-                        "name": "GatewayAPIController"
-                    },
Evidence
The FeatureGate API contract documents that operators must use FeatureGate.status.featureGates as
the source of truth. The payload FeatureGate YAMLs under payload-manifests/featuregates are rendered
from features.AllFeatureSets() into FeatureGate.Status.FeatureGates. After this PR, the Hypershift
Default manifest’s enabled list no longer includes GatewayAPI/GatewayAPIController (the list jumps
from GCPClusterHostedDNSInstall to HighlyAvailableArbiter).

config/v1/types_feature.go[110-117]
payload-command/render/write_featureset.go[172-240]
payload-manifests/featuregates/featureGate-4-10-Hypershift-Default.yaml[292-297]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR removes `GatewayAPI` and `GatewayAPIController` from the rendered FeatureGate payload manifests. Per the FeatureGate API contract, operators read `.status.featureGates` to drive operand/operator behavior. If any consumers still look up these names, they may misbehave or fail after upgrade.

## Issue Context
Payload featuregate YAMLs are rendered from `features.AllFeatureSets()` by the render command, and become the canonical `.status.featureGates` list.

## Fix Focus Areas
- payload-command/render/write_featureset.go[172-240]
- payload-manifests/featuregates/featureGate-4-10-Hypershift-Default.yaml[284-304]
- config/v1/types_feature.go[110-121]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Fixture still mentions GatewayAPI 🐞 Bug ✓ Correctness
Description
A repository test fixture still includes GatewayAPI in a FeatureGate status example even though
the payload featuregate manifests no longer include that gate. This makes fixtures/examples
inconsistent with the current supported set and can mislead future debugging or feature-gate tooling
work.
Code

features/features.go[L102-108]

-	FeatureGateGatewayAPI = newFeatureGate("GatewayAPI").
-				reportProblemsToJiraComponent("Routing").
-				contactPerson("miciah").
-				productScope(ocpSpecific).
-				enhancementPR(legacyFeatureGateWithoutEnhancement).
-				enable(inDefault(), inOKD(), inTechPreviewNoUpgrade(), inDevPreviewNoUpgrade()).
-				mustRegister()
Evidence
The example FeatureGate YAML embedded in a render asset test still contains - name: GatewayAPI.
Meanwhile, the current payload FeatureGate manifests (used as the canonical rendered output for
feature gates) do not include GatewayAPI in the enabled list for Hypershift Default.

payload-command/render/renderassets/rendered_manifests_test.go[93-104]
payload-manifests/featuregates/featureGate-4-10-Hypershift-Default.yaml[292-297]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A test fixture embedded in `rendered_manifests_test.go` still contains `GatewayAPI` as a feature gate name. After this PR, that gate is no longer present in the rendered payload featuregate manifests, making the fixture misleading.

## Issue Context
The test currently only validates YAML decoding, so changing the fixture should be safe as long as it remains valid FeatureGate YAML.

## Fix Focus Areas
- payload-command/render/renderassets/rendered_manifests_test.go[88-110]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@openshift-ci openshift-ci bot requested review from JoelSpeed and everettraven March 4, 2026 20:33
@coderabbitai
Copy link

coderabbitai bot commented Mar 4, 2026

📝 Walkthrough

Walkthrough

This pull request removes the GatewayAPI and GatewayAPIController feature gates from the codebase. Changes include deletion of feature gate definitions from features.go, removal of entries from legacy feature gate sets in multiple files, and removal of GatewayAPI and GatewayAPIController from enabled lists across all feature gate configuration manifests covering different cluster profiles (Hypershift and SelfManagedHA variants with Default, DevPreviewNoUpgrade, OKD, and TechPreviewNoUpgrade readiness levels).

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description is directly related to the changeset, stating the intent to remove featuregates for gatewayAPI and gatewayAPIController, which matches all changes across the modified files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly and specifically describes the main change: removing GatewayAPI featuregates. It is concise, directly reflects the changeset across all modified files, and provides sufficient context for understanding the primary change.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

{
"name": "GCPClusterHostedDNSInstall"
},
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Dropped gates from status lists 🐞 Bug ⛯ Reliability

Removing GatewayAPI/GatewayAPIController from the rendered FeatureGate payload manifests means they
will no longer appear in FeatureGate.status.featureGates. Since the API explicitly requires
operators (other than CVO/CCO) to read .status.featureGates and make operands match, any remaining
consumer that expects these gates can silently change behavior or fail after upgrade when the gates
disappear.
Agent Prompt
## Issue description
The PR removes `GatewayAPI` and `GatewayAPIController` from the rendered FeatureGate payload manifests. Per the FeatureGate API contract, operators read `.status.featureGates` to drive operand/operator behavior. If any consumers still look up these names, they may misbehave or fail after upgrade.

## Issue Context
Payload featuregate YAMLs are rendered from `features.AllFeatureSets()` by the render command, and become the canonical `.status.featureGates` list.

## Fix Focus Areas
- payload-command/render/write_featureset.go[172-240]
- payload-manifests/featuregates/featureGate-4-10-Hypershift-Default.yaml[284-304]
- config/v1/types_feature.go[110-121]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@rhamini3 rhamini3 changed the title [WIP] OCPBUGS-74508: Remove GatewayAPI featuregates OCPBUGS-74508: Remove GatewayAPI featuregates Mar 5, 2026
@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 Mar 5, 2026
@ShudiLi
Copy link
Member

ShudiLi commented Mar 5, 2026

Tested it with 4.22.0-0-2026-03-05-051128-test-ci-ln-4m5zfnt-latest

1.
% oc get clusterversion
NAME      VERSION                                                AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.22.0-0-2026-03-05-051128-test-ci-ln-4m5zfnt-latest   True        False         12m     Cluster version is 4.22.0-0-2026-03-05-051128-test-ci-ln-4m5zfnt-latest

2.
% oc get featuregates cluster -oyaml | grep -i gateway
    - name: GatewayAPIWithoutOLM
% 

@JoelSpeed
Copy link
Contributor

/lgtm
/verified by CI

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Mar 5, 2026
@openshift-ci-robot
Copy link

@JoelSpeed: This PR has been marked as verified by CI.

Details

In response to this:

/lgtm
/verified by CI

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 added the lgtm Indicates that a PR is ready to be merged. label Mar 5, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 5, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 5, 2026
@openshift-ci-robot
Copy link

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-ovn
/test e2e-aws-ovn-hypershift
/test e2e-aws-ovn-hypershift-conformance
/test e2e-aws-ovn-techpreview
/test e2e-aws-serial-1of2
/test e2e-aws-serial-2of2
/test e2e-aws-serial-techpreview-1of2
/test e2e-aws-serial-techpreview-2of2
/test e2e-azure
/test e2e-gcp
/test e2e-upgrade
/test e2e-upgrade-out-of-change
/test minor-e2e-upgrade-minor

@rikatz
Copy link
Member

rikatz commented Mar 5, 2026

/hold

we need openshift/cluster-ingress-operator#1366 merged first

@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 Mar 5, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 5, 2026

@rhamini3: The following tests 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-gcp e50d6d6 link true /test e2e-gcp
ci/prow/e2e-aws-ovn e50d6d6 link true /test e2e-aws-ovn
ci/prow/e2e-aws-serial-techpreview-2of2 e50d6d6 link true /test e2e-aws-serial-techpreview-2of2
ci/prow/e2e-aws-ovn-techpreview e50d6d6 link true /test e2e-aws-ovn-techpreview
ci/prow/e2e-azure e50d6d6 link true /test e2e-azure
ci/prow/e2e-upgrade-out-of-change e50d6d6 link true /test e2e-upgrade-out-of-change
ci/prow/e2e-aws-ovn-hypershift-conformance e50d6d6 link true /test e2e-aws-ovn-hypershift-conformance
ci/prow/minor-e2e-upgrade-minor e50d6d6 link true /test minor-e2e-upgrade-minor
ci/prow/e2e-upgrade e50d6d6 link true /test e2e-upgrade
ci/prow/e2e-aws-serial-2of2 e50d6d6 link true /test e2e-aws-serial-2of2
ci/prow/e2e-aws-serial-1of2 e50d6d6 link true /test e2e-aws-serial-1of2
ci/prow/e2e-aws-serial-techpreview-1of2 e50d6d6 link true /test e2e-aws-serial-techpreview-1of2
ci/prow/e2e-aws-ovn-hypershift e50d6d6 link true /test e2e-aws-ovn-hypershift

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.

@rhamini3
Copy link
Author

rhamini3 commented Mar 5, 2026

/retest

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants