Skip to content

MCO-2114: allow OSStream in OKD#2749

Open
cheesesashimi wants to merge 1 commit intoopenshift:masterfrom
cheesesashimi:zzlotnik/osstream-in-okd
Open

MCO-2114: allow OSStream in OKD#2749
cheesesashimi wants to merge 1 commit intoopenshift:masterfrom
cheesesashimi:zzlotnik/osstream-in-okd

Conversation

@cheesesashimi
Copy link
Member

It will eventually become essential for OKD to be compatible with the OSStream feature. The key difference is that, for now, OKD will only support a single OSStream as opposed to having multiple options as OCP does.

@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-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 6, 2026
@openshift-ci-robot
Copy link

openshift-ci-robot commented Mar 6, 2026

@cheesesashimi: This pull request references MCO-2114 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

It will eventually become essential for OKD to be compatible with the OSStream feature. The key difference is that, for now, OKD will only support a single OSStream as opposed to having multiple options as OCP does.

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
Copy link
Contributor

openshift-ci bot commented Mar 6, 2026

Hello @cheesesashimi! 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.

@coderabbitai
Copy link

coderabbitai bot commented Mar 6, 2026

📝 Walkthrough

Walkthrough

This pull request enables the OSStreams feature for OKD environments and extends the MachineConfigPool custom resource definition. Changes include updating the OSStreams feature gate logic to include OKD activation conditions, moving OSStreams from disabled to enabled status in OKD-specific feature gate configurations, adding osImageStream fields to MachineConfigPool CRD spec and status sections, and updating the OSImageStreams CRD feature-set annotation to include OKD. Documentation is updated to reflect the new enabled status across multiple environments.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title accurately reflects the main objective: enabling OSStreams support in OKD, which is the primary change across multiple files.
Description check ✅ Passed The description directly relates to the changeset by explaining the purpose of enabling OSStreams in OKD and clarifying the single vs. multiple stream difference from OCP.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Stable And Deterministic Test Names ✅ Passed This PR contains only configuration file changes (features.md, YAML manifests) with no Ginkgo test modifications.
Test Structure And Quality ✅ Passed The pull request contains no Ginkgo test code, only feature gate definitions and CRD manifests, making this check not applicable.

✏️ 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

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.5.0)

Error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented
The command is terminated due to an error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@qodo-code-review
Copy link

Review Summary by Qodo

Enable OSStreams feature support for OKD

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Enable OSStreams feature gate for OKD platform
• Add osImageStream field to MachineConfigPool spec and status
• Update feature set annotations to include OKD support
• Reorganize feature gate entries in OKD manifests
Diagram
flowchart LR
  A["OSStreams Feature Gate"] -->|"enable inOKD()"| B["OKD Support"]
  C["MachineConfigPool CRD"] -->|"add osImageStream field"| D["Pool-level OS Stream Selection"]
  E["Feature Set Annotations"] -->|"include OKD"| F["OKD Manifest Compatibility"]
  B --> G["OKD Clusters"]
  D --> G
  F --> G
Loading

Grey Divider

File Changes

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

Enable OSStreams feature gate for OKD

• Enable FeatureGateOSStreams for OKD by adding inOKD() to the enable list
• Previously only enabled for TechPreviewNoUpgrade and DevPreviewNoUpgrade

features/features.go


2. features.md 📝 Documentation +1/-1

Update feature matrix documentation for OSStreams

• Move OSStreams row in feature matrix to reflect OKD enablement
• Update table to show OSStreams enabled across all OKD feature sets

features.md


3. machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfigpools-OKD.crd.yaml ✨ Enhancement +53/-0

Add osImageStream field to MachineConfigPool CRD

• Add osImageStream field to MachineConfigPool spec for selecting OS streams
• Add osImageStream field to MachineConfigPool status for tracking applied stream
• Include RFC 1123 subdomain validation for stream name references
• Provide detailed descriptions for optional OS stream configuration

machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfigpools-OKD.crd.yaml


View more (5)
4. machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_osimagestreams.crd.yaml ✨ Enhancement +1/-1

Add OKD to OSImageStreams CRD feature set

• Update feature-set annotation to include OKD alongside existing feature sets
• Enable OSImageStreams CRD for OKD platform

machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_osimagestreams.crd.yaml


5. payload-manifests/crds/0000_80_machine-config_01_machineconfigpools-OKD.crd.yaml ✨ Enhancement +53/-0

Add osImageStream field to payload MachineConfigPool CRD

• Add osImageStream field to MachineConfigPool spec for selecting OS streams
• Add osImageStream field to MachineConfigPool status for tracking applied stream
• Include RFC 1123 subdomain validation for stream name references
• Mirror changes from v1 CRD manifest

payload-manifests/crds/0000_80_machine-config_01_machineconfigpools-OKD.crd.yaml


6. payload-manifests/crds/0000_80_machine-config_01_osimagestreams.crd.yaml ✨ Enhancement +1/-1

Add OKD to payload OSImageStreams CRD feature set

• Update feature-set annotation to include OKD alongside existing feature sets
• Enable OSImageStreams CRD for OKD platform in payload manifests

payload-manifests/crds/0000_80_machine-config_01_osimagestreams.crd.yaml


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

Reorganize OSStreams in Hypershift OKD feature gates

• Remove OSStreams from TechPreviewNoUpgrade feature set section
• Add OSStreams to Default feature set section
• Reorganize feature gate entries for OKD Hypershift configuration

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


8. payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-OKD.yaml ⚙️ Configuration changes +3/-3

Reorganize OSStreams in SelfManagedHA OKD feature gates

• Remove OSStreams from TechPreviewNoUpgrade feature set section
• Add OSStreams to Default feature set section
• Reorganize feature gate entries for OKD SelfManagedHA configuration

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


Grey Divider

Qodo Logo

@qodo-code-review
Copy link

qodo-code-review bot commented Mar 6, 2026

Code Review by Qodo

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

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

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

Grey Divider

Qodo Logo

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 6, 2026
@openshift-ci openshift-ci bot requested review from JoelSpeed and jkyros March 6, 2026 18:56
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
features/features.go (1)

981-986: ⚠️ Potential issue | 🟠 Major

inOKD() enables a broader API surface than the stated OKD scope.

The OSStreams gate also guards MachineConfigPool.spec.osImageStream, and that source type explicitly allows per-pool overrides away from the cluster default (machineconfiguration/v1/types.go:456-469). That is a multi-stream API surface. If OKD is only meant to support a single OSStream initially, this gate is too coarse and will publish unsupported semantics in the OKD CRDs.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@features/features.go` around lines 981 - 986, FeatureGateOSStreams currently
enables broad multi-stream semantics in OKD via inOKD(), but
MachineConfigPool.spec.osImageStream allows per-pool overrides (multi-stream)
and that should not be exposed in OKD; remove inOKD() from the enable(...) chain
on FeatureGateOSStreams (or replace it with an OCP-only predicate such as
inOCPOnly() / omit OKD predicate) so the gate is not turned on for OKD, or
alternatively split this into two gates (one for single-stream OKD and one for
multi-stream OCP) and adjust callers that reference FeatureGateOSStreams
accordingly; locate the enable(...) call on FeatureGateOSStreams and update it
to stop enabling the multi-stream behavior for inOKD().
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@features/features.go`:
- Around line 981-986: FeatureGateOSStreams currently enables broad multi-stream
semantics in OKD via inOKD(), but MachineConfigPool.spec.osImageStream allows
per-pool overrides (multi-stream) and that should not be exposed in OKD; remove
inOKD() from the enable(...) chain on FeatureGateOSStreams (or replace it with
an OCP-only predicate such as inOCPOnly() / omit OKD predicate) so the gate is
not turned on for OKD, or alternatively split this into two gates (one for
single-stream OKD and one for multi-stream OCP) and adjust callers that
reference FeatureGateOSStreams accordingly; locate the enable(...) call on
FeatureGateOSStreams and update it to stop enabling the multi-stream behavior
for inOKD().

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro

Run ID: dd49a350-57ee-4d44-97e2-83809990f914

📥 Commits

Reviewing files that changed from the base of the PR and between f595753 and c286b11.

⛔ Files ignored due to path filters (2)
  • machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfigpools-OKD.crd.yaml is excluded by !**/zz_generated.crd-manifests/*
  • machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_osimagestreams.crd.yaml is excluded by !**/zz_generated.crd-manifests/*
📒 Files selected for processing (6)
  • features.md
  • features/features.go
  • payload-manifests/crds/0000_80_machine-config_01_machineconfigpools-OKD.crd.yaml
  • payload-manifests/crds/0000_80_machine-config_01_osimagestreams.crd.yaml
  • payload-manifests/featuregates/featureGate-4-10-Hypershift-OKD.yaml
  • payload-manifests/featuregates/featureGate-4-10-SelfManagedHA-OKD.yaml

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 6, 2026

@cheesesashimi: 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.

Copy link
Contributor

@yuqi-zhang yuqi-zhang left a comment

Choose a reason for hiding this comment

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

Functionally lgtm, does this require any other PRs to merge first to ensure OKD doesn't break (openshift/release#75759?)

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 6, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yuqi-zhang
Once this PR has been reviewed and has the lgtm label, please assign everettraven 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

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

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants