Skip to content

Conversation

ngopalak-redhat
Copy link
Contributor

@ngopalak-redhat ngopalak-redhat commented Jun 17, 2025

This PR addresses an issue in the generated documentation for the defaultRuntime option

Previously, the documentation at https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/machine_apis/containerruntimeconfig-machineconfiguration-openshift-io-v1 did not list crun and runc as valid options for defaultRuntime.

While crun became the default runtime in OpenShift 4.18 (as per release notes: https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/release_notes/ocp-4-18-release-notes), the internal constant reflecting this default was not updated, though the functionality itself was correct.

This change updates the internal documentation comments and the relevant constant to accurately reflect:

Valid options: crun and runc
Default runtime: crun

Based on the review I have also added enum validation so that the failure can be caught earlier. Unit tests are added to ensure that it doesn't break any existing functionality.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 17, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 17, 2025

@ngopalak-redhat: This pull request references OCPNODE-3372 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 bug to target the "4.20.0" version, but no target version was set.

In response to this:

This PR addresses an issue in the generated documentation for the defaultRuntime option

Previously, the documentation at https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/machine_apis/containerruntimeconfig-machineconfiguration-openshift-io-v1 did not list crun and runc as valid options for defaultRuntime.

While crun became the default runtime in OpenShift 4.18 (as per release notes: https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/release_notes/ocp-4-18-release-notes), the internal constant reflecting this default was not updated, though the functionality itself was correct.

This change updates the internal documentation comments and the relevant constant to accurately reflect:

Valid options: crun and runc
Default runtime: crun

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.

Copy link
Contributor

openshift-ci bot commented Jun 17, 2025

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 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 Jun 17, 2025
Copy link
Contributor

openshift-ci bot commented Jun 17, 2025

Hello @ngopalak-redhat! 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 openshift-ci bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 17, 2025
@ngopalak-redhat ngopalak-redhat marked this pull request as ready for review June 17, 2025 04:35
@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 Jun 17, 2025
@ngopalak-redhat
Copy link
Contributor Author

/assign @sairameshv @haircommander

@ngopalak-redhat
Copy link
Contributor Author

/test lint

@ngopalak-redhat ngopalak-redhat force-pushed the ngopalak/OCPNODE-3372_defaultRuntime branch from 0684334 to 6cf242b Compare June 17, 2025 05:28
@ngopalak-redhat
Copy link
Contributor Author

/retest

@ngopalak-redhat ngopalak-redhat force-pushed the ngopalak/OCPNODE-3372_defaultRuntime branch from 6cf242b to 4a4c7f8 Compare June 17, 2025 09:26
@openshift-ci openshift-ci bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 17, 2025
@ngopalak-redhat
Copy link
Contributor Author

/retest-required

@ngopalak-redhat
Copy link
Contributor Author

/test images

@ngopalak-redhat
Copy link
Contributor Author

/test minor-images

@ngopalak-redhat
Copy link
Contributor Author

/test images

@ngopalak-redhat
Copy link
Contributor Author

/test minor-images

@ngopalak-redhat
Copy link
Contributor Author

/retest-required

@ngopalak-redhat
Copy link
Contributor Author

/test e2e-azure

@ngopalak-redhat
Copy link
Contributor Author

/test okd-scos-e2e-aws-ovn

@ngopalak-redhat
Copy link
Contributor Author

/test minor-e2e-upgrade-minor

@ngopalak-redhat
Copy link
Contributor Author

/test okd-scos-e2e-aws-ovn

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 674ad74 and 2 for PR HEAD 9334ab7 in total

5 similar comments
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 674ad74 and 2 for PR HEAD 9334ab7 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 674ad74 and 2 for PR HEAD 9334ab7 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 674ad74 and 2 for PR HEAD 9334ab7 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 674ad74 and 2 for PR HEAD 9334ab7 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 674ad74 and 2 for PR HEAD 9334ab7 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD e375905 and 1 for PR HEAD 9334ab7 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD e375905 and 2 for PR HEAD 9334ab7 in total

1 similar comment
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD e375905 and 2 for PR HEAD 9334ab7 in total

@ngopalak-redhat ngopalak-redhat force-pushed the ngopalak/OCPNODE-3372_defaultRuntime branch from 9334ab7 to 01d83a6 Compare July 17, 2025 07:38
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2025
@ngopalak-redhat ngopalak-redhat force-pushed the ngopalak/OCPNODE-3372_defaultRuntime branch from 01d83a6 to 3ae73f9 Compare July 30, 2025 04:54
@JoelSpeed
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 30, 2025
Copy link
Contributor

openshift-ci bot commented Jul 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, JoelSpeed, ngopalak-redhat

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

The pull request process is described here

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

/retest-required

Remaining retests: 0 against base HEAD 6d3c4e2 and 2 for PR HEAD 3ae73f9 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 4a5da13 and 1 for PR HEAD 3ae73f9 in total

Copy link
Contributor

openshift-ci bot commented Jul 31, 2025

@ngopalak-redhat: 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-gcp 3ae73f9 link false /test e2e-gcp

Full PR test history. Your PR dashboard.

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 ed654ed into openshift:master Jul 31, 2025
26 of 27 checks passed
@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

Distgit: ose-cluster-config-api
This PR has been included in build ose-cluster-config-api-container-v4.20.0-202507310343.p0.ged654ed.assembly.stream.el9.
All builds following this will include this PR.

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

8 participants