Skip to content

OCPBUGS-105398: refactor: remove AzureWorkloadIdentity feature gate - #1537

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
damdo:remove-azure-workload-identity-gate
Sep 1, 2026
Merged

OCPBUGS-105398: refactor: remove AzureWorkloadIdentity feature gate#1537
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
damdo:remove-azure-workload-identity-gate

Conversation

@damdo

@damdo damdo commented Aug 31, 2026

Copy link
Copy Markdown
Member

Summary

  • Remove the AzureWorkloadIdentity map entry from the featuregates passed to the machine controllers in pkg/operator/operator.go — the gate is GA and enabled by default upstream (openshift/api), so this was always evaluating to true
  • Update test fixtures accordingly

Why

Once AzureWorkloadIdentity is deregistered from openshift/api (openshift/api#3018), the unconditional featureGates.Enabled(apifeatures.FeatureGateAzureWorkloadIdentity) call here panics, because library-go's FeatureGate.Enabled() panics when asked about a name that isn't part of the FeatureGate CR's known set. That panic crashes machine-api-operator, which cascades into control-plane machines never becoming ready (verified in a failing e2e-aws-ovn run on openshift/api#3018 — CI logs showed machine-api-operator panicking with feature "AzureWorkloadIdentity" is not registered in FeatureGates [...]).

Companion PR: openshift/machine-api-provider-azure#207 (already open, removes the same gate's plumbing from the Azure actuators).

Test plan

  • go build ./... succeeds
  • go test ./pkg/operator/... passes
  • No remaining references to AzureWorkloadIdentity outside vendor

Summary by CodeRabbit

  • Bug Fixes
    • Removed the Azure Workload Identity feature gate from provider controller and MachineSet configuration.
    • Updated operator test configuration to reflect the feature gate’s removal.

The gate is now GA and enabled by default upstream (openshift/api), so
the unconditional featureGates.Enabled() call for it was always true.
Once the gate is deregistered upstream, that call panics because
library-go's FeatureGate.Enabled() panics for unknown feature names.
Drop the map entry so the deployment no longer depends on the gate's
registration status.
@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: LGTM mode

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

Copy link
Copy Markdown
Contributor

@damdo: This pull request references Jira Issue OCPBUGS-105398, which is invalid:

  • expected the bug to target the "5.1.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

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

Details

In response to this:

Summary

  • Remove the AzureWorkloadIdentity map entry from the featuregates passed to the machine controllers in pkg/operator/operator.go — the gate is GA and enabled by default upstream (openshift/api), so this was always evaluating to true
  • Update test fixtures accordingly

Why

Once AzureWorkloadIdentity is deregistered from openshift/api (openshift/api#3018), the unconditional featureGates.Enabled(apifeatures.FeatureGateAzureWorkloadIdentity) call here panics, because library-go's FeatureGate.Enabled() panics when asked about a name that isn't part of the FeatureGate CR's known set. That panic crashes machine-api-operator, which cascades into control-plane machines never becoming ready (verified in a failing e2e-aws-ovn run on openshift/api#3018 — CI logs showed machine-api-operator panicking with feature "AzureWorkloadIdentity" is not registered in FeatureGates [...]).

Companion PR: openshift/machine-api-provider-azure#207 (already open, removes the same gate's plumbing from the Azure actuators).

Test plan

  • go build ./... succeeds
  • go test ./pkg/operator/... passes
  • No remaining references to AzureWorkloadIdentity outside vendor

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.

@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 5f9d7f84-73d8-4c05-b328-5900f16dac68

📥 Commits

Reviewing files that changed from the base of the PR and between 08e3154 and 3b54660.

📒 Files selected for processing (2)
  • pkg/operator/operator.go
  • pkg/operator/operator_test.go
💤 Files with no reviewable changes (2)
  • pkg/operator/operator.go
  • pkg/operator/operator_test.go

Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.


Walkthrough

The operator no longer passes or enables the Azure Workload Identity feature gate. The test operator configuration reflects the same removal.

Changes

Operator feature-gate configuration

Layer / File(s) Summary
Remove Azure Workload Identity gate
pkg/operator/operator.go, pkg/operator/operator_test.go
The operator no longer includes FeatureGateAzureWorkloadIdentity in the provider-controller and MachineSet feature map. The test configuration no longer enables the gate.

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

Merge Risk: ⚪ Minimal · up to 3b546

This is a localized cleanup removing obsolete feature-gate plumbing and updating its fixtures; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: removing the AzureWorkloadIdentity feature gate. The Jira identifier does not affect the title's relevance.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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 PASS. The pull request changes only three feature-gate entries. It adds no Ginkgo test titles and changes no test names. The affected test file uses Go testing, not Ginkgo title APIs. The diff conta…
Test Structure And Quality ✅ Passed PASS: The pull request changes only two feature-gate map fixtures and removes one production map entry. The exact diff contains no added Ginkgo It, BeforeEach, AfterEach, Eventually, or `Consi…
Microshift Test Compatibility ✅ Passed PASS: The pull request adds no Ginkgo e2e tests. The committed diff changes only two existing operator files and removes three feature-gate entries. The changed test file contains existing Go `Test...…
Single Node Openshift (Sno) Test Compatibility ✅ Passed PASS: The pull request adds no Ginkgo e2e tests. The diff only removes the AzureWorkloadIdentity feature-gate entry from pkg/operator/operator.go and updates test fixture data in `pkg/operator/opera…
Topology-Aware Scheduling Compatibility ✅ Passed PASS — The commit changes only the AzureWorkloadIdentity feature-gate map entry and related test fixtures. The exact diff contains no affinity, topology spread, replica, node selector, toleration, rol…
Ote Binary Stdout Contract ✅ Passed The pull request changes only pkg/operator/operator.go and pkg/operator/operator_test.go. It removes Azure Workload Identity feature-gate entries and adds no stdout writes, logging configuration, …
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PASS: The pull request adds no code or tests. The exact diff contains only three deletions in pkg/operator/operator.go and pkg/operator/operator_test.go, with no new Ginkgo declarations. The IPv4 …
No-Weak-Crypto ✅ Passed PASS: The pull request only removes the Azure Workload Identity feature-gate entry from production code and test fixtures. The changed lines contain no MD5, SHA1, DES, RC4, Blowfish, ECB, custom crypt…
Container-Privileges ✅ Passed The pull request changes only feature-gate map and test-fixture entries. The parent-to-HEAD diff contains no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, or `allowPrivilegeEscalatio…
No-Sensitive-Data-In-Logs ✅ Passed PASS: The commit contains only three deletions from feature-gate maps and test fixtures. It adds no logging statements, log fields, or sensitive-data output. Existing logging in pkg/operator/operator.…
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files.

Full details: Stable And Deterministic Test Names

Explanation

PASS. The pull request changes only three feature-gate entries. It adds no Ginkgo test titles and changes no test names. The affected test file uses Go testing, not Ginkgo title APIs. The diff contains only deletions.

Full details: Test Structure And Quality

Explanation

PASS: The pull request changes only two feature-gate map fixtures and removes one production map entry. The exact diff contains no added Ginkgo It, BeforeEach, AfterEach, Eventually, or Consistently code. pkg/operator/operator_test.go uses standard Go tests, and the existing wait already has a five-second timeout. No new resource setup, cleanup, or assertion was introduced, so none of the stated test-quality failure conditions applies.

Full details: Microshift Test Compatibility

Explanation

PASS: The pull request adds no Ginkgo e2e tests. The committed diff changes only two existing operator files and removes three feature-gate entries. The changed test file contains existing Go Test... unit tests, with no Ginkgo imports or It, Describe, Context, or When additions. The MicroShift test-compatibility check is therefore not applicable.

Full details: Single Node Openshift (Sno) Test Compatibility

Explanation

PASS: The pull request adds no Ginkgo e2e tests. The diff only removes the AzureWorkloadIdentity feature-gate entry from pkg/operator/operator.go and updates test fixture data in pkg/operator/operator_test.go. The changed test file uses standard Test... functions and contains no new It, Describe, Context, or When constructs. Therefore, the SNO multi-node compatibility check is not applicable.

Full details: Topology-Aware Scheduling Compatibility

Explanation

PASS — The commit changes only the AzureWorkloadIdentity feature-gate map entry and related test fixtures. The exact diff contains no affinity, topology spread, replica, node selector, toleration, rollout, or PDB changes. The existing control-plane node selector and tolerations are in unchanged code, so they are not caused by this pull request.

Full details: Ote Binary Stdout Contract

Explanation

The pull request changes only pkg/operator/operator.go and pkg/operator/operator_test.go. It removes Azure Workload Identity feature-gate entries and adds no stdout writes, logging configuration, OTE entry-point code, or suite setup code. The OTE binary remains unchanged, so this check has no introduced violation.

Full details: Ipv6 And Disconnected Network Test Compatibility

Explanation

PASS: The pull request adds no code or tests. The exact diff contains only three deletions in pkg/operator/operator.go and pkg/operator/operator_test.go, with no new Ginkgo declarations. The IPv4 and external-connectivity conditions do not apply.

Full details: No-Weak-Crypto

Explanation

PASS: The pull request only removes the Azure Workload Identity feature-gate entry from production code and test fixtures. The changed lines contain no MD5, SHA1, DES, RC4, Blowfish, ECB, custom crypto, or secret-comparison logic.

Full details: Container-Privileges

Explanation

The pull request changes only feature-gate map and test-fixture entries. The parent-to-HEAD diff contains no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, or allowPrivilegeEscalation changes. Existing HostNetwork: true code and the SCC settings are unchanged; the SCC also has allowPrivilegedContainer: false, allowHostPID: false, and allowHostIPC: false. Therefore, the pull request does not introduce a container-privilege failure.

Full details: No-Sensitive-Data-In-Logs

Explanation

PASS: The commit contains only three deletions from feature-gate maps and test fixtures. It adds no logging statements, log fields, or sensitive-data output. Existing logging in pkg/operator/operator.go is unchanged.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@damdo

damdo commented Aug 31, 2026

Copy link
Copy Markdown
Member Author

/pipeline auto

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification

The pipeline-auto label has been added to this PR. Second-stage tests will be triggered automatically when all first-stage tests pass.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-operator
/test e2e-aws-ovn
/test e2e-aws-ovn-upgrade
/test e2e-metal-ipi
/test e2e-metal-ipi-ovn-ipv6
/test e2e-metal-ipi-virtualmedia

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Tests from second stage were triggered manually. Pipeline can be controlled only manually, until HEAD changes. Use command to trigger second stage.

@damdo

damdo commented Aug 31, 2026

Copy link
Copy Markdown
Member Author

/retest

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Tests from second stage were triggered manually. Pipeline can be controlled only manually, until HEAD changes. Use command to trigger second stage.

@mdbooth mdbooth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm
/approve

@mdbooth

mdbooth commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

/verified by CI

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Sep 1, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

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

Details

In response to this:

/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 Sep 1, 2026
@openshift-ci

openshift-ci Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mdbooth

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 Sep 1, 2026
@mdbooth

mdbooth commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 1, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@mdbooth: This pull request references Jira Issue OCPBUGS-105398, which is valid.

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

In response to this:

/jira refresh

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.

@damdo

damdo commented Sep 1, 2026

Copy link
Copy Markdown
Member Author

/retest

@openshift-ci

openshift-ci Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@damdo: all tests passed!

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.

@openshift-merge-bot
openshift-merge-bot Bot merged commit ad641ef into openshift:main Sep 1, 2026
16 checks passed
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@damdo: Jira Issue OCPBUGS-105398: Some pull requests linked via external trackers have merged:

The following pull request, linked via external tracker, has not merged:

All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-105398 has not been moved to the MODIFIED state.

This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are available in an accepted nightly payload.

Details

In response to this:

Summary

  • Remove the AzureWorkloadIdentity map entry from the featuregates passed to the machine controllers in pkg/operator/operator.go — the gate is GA and enabled by default upstream (openshift/api), so this was always evaluating to true
  • Update test fixtures accordingly

Why

Once AzureWorkloadIdentity is deregistered from openshift/api (openshift/api#3018), the unconditional featureGates.Enabled(apifeatures.FeatureGateAzureWorkloadIdentity) call here panics, because library-go's FeatureGate.Enabled() panics when asked about a name that isn't part of the FeatureGate CR's known set. That panic crashes machine-api-operator, which cascades into control-plane machines never becoming ready (verified in a failing e2e-aws-ovn run on openshift/api#3018 — CI logs showed machine-api-operator panicking with feature "AzureWorkloadIdentity" is not registered in FeatureGates [...]).

Companion PR: openshift/machine-api-provider-azure#207 (already open, removes the same gate's plumbing from the Azure actuators).

Test plan

  • go build ./... succeeds
  • go test ./pkg/operator/... passes
  • No remaining references to AzureWorkloadIdentity outside vendor

Summary by CodeRabbit

  • Bug Fixes
  • Removed the Azure Workload Identity feature gate from provider controller and MachineSet configuration.
  • Updated operator test configuration to reflect the feature gate’s removal.

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.

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. jira/severity-low Referenced Jira bug's severity is low 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. 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. pipeline-auto verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants