Skip to content

MCO-1518: Create V1 MachineConfigNodes API & deploy V1 MCN CRDs #2255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2025

Conversation

isabella-janssen
Copy link
Member

@isabella-janssen isabella-janssen commented Mar 31, 2025

Merge Plan:

This should merge simultaneously with

Included work:

References:

@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 31, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Mar 31, 2025

@isabella-janssen: This pull request references MCO-1518 which is a valid jira issue.

In response to this:

What I did:

  • Copies over the v1alpha1 MCN api into the v1 folder.
  • Removes the unused Spec.PinnedImageSets field.
  • Removes comments suggesting future changes and updates compatibility level.

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 Mar 31, 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 Mar 31, 2025
Copy link
Contributor

openshift-ci bot commented Mar 31, 2025

Hello @isabella-janssen! 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Mar 31, 2025
@isabella-janssen
Copy link
Member Author

/test all

@isabella-janssen isabella-janssen changed the title (Work in Progress) MCO-1518: Promote MCN to GA (Work in Progress) MCO-1518: Create V1 MCN API Mar 31, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 1, 2025

@isabella-janssen: This pull request references MCO-1518 which is a valid jira issue.

In response to this:

Included work:

  • Copies over the v1alpha1 MCN api into the v1 folder.
  • Removes the unused Spec.PinnedImageSets field.
  • Removes comments suggesting future changes and updates compatibility level.

References:

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.

@isabella-janssen
Copy link
Member Author

/test all

@isabella-janssen isabella-janssen marked this pull request as ready for review April 1, 2025 14:15
@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 Apr 1, 2025
@openshift-ci openshift-ci bot requested review from cheesesashimi and jkyros April 1, 2025 14:16
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 1, 2025

@isabella-janssen: This pull request references MCO-1518 which is a valid jira issue.

In response to this:

Included work:

References:

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

openshift-ci-robot commented Apr 1, 2025

@isabella-janssen: This pull request references MCO-1518 which is a valid jira issue.

In response to this:

Included work:

References:

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.

@isabella-janssen isabella-janssen changed the title (Work in Progress) MCO-1518: Create V1 MCN API MCO-1518: Create V1 MCN API Apr 1, 2025
@isabella-janssen isabella-janssen force-pushed the create-mcn-v1-api branch 2 times, most recently from 10f6549 to fa125b7 Compare April 9, 2025 15:25
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 9, 2025

@isabella-janssen: This pull request references MCO-1518 which is a valid jira issue.

In response to this:

Included work:

References:

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.

Comment on lines 5 to 7
#TODO(ijanssen): once MCO side is ready for MCN v1 API, update the v1 crds back to
# `machineconfiguration/v1/zz_generated.crd-manifests/*.crd.yaml` and remove MCN v1alpha1 crd ref
# `machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes*.crd.yaml`.
Copy link
Contributor

Choose a reason for hiding this comment

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

How do we plan to co-ordinate this? Do we need to simul-merge a couple of PRs to make this actually work?

Copy link
Member Author

@isabella-janssen isabella-janssen Apr 10, 2025

Choose a reason for hiding this comment

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

My understanding is we will need to simul-merge PRs in the following repos for this:

Linking this Slack thread where this is also being discussed: https://redhat-internal.slack.com/archives/CE4L0F143/p1744292448679729?thread_ts=1744228390.483339&cid=CE4L0F143

Copy link
Contributor

Choose a reason for hiding this comment

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

This has been the steps we've done for other v1 APIs, curious if there's a better way to do this, since there's a disconnect between the deployment of the CRD (happens here) vs consuming the API (in the MCO) without having to write a conversion webhook.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not personally aware of any better ways to do this. When I was on the OLM team, our approach for "breaking" changes like this was to temporarily disable the tests that would fail (and maybe remove ourselves from the payload), force merge the updates simultaneously, and finally re-enable the tests.

I would be curious to explore if there is a better way to do this now using a combination of API discovery and Go generics, but that is likely a heavy handed change.

Copy link
Member

Choose a reason for hiding this comment

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

My understanding is that we'd have to serve both apis with a v1alpha1 to v1 mutating webhook. Update all clients to v1, we should check for v1alpha1 usage and when there is none remove it.

Given this is all behind TPNU right now and our intention is to transition to v1 before lifting that gate I think we can cut some corners. docs.ci.openshift.org is down right now but I believe there's docs there on how to run payload tests with multiple PRs merged. So we should stage all of the PRs, test it that way, and I can help coordinate making sure they merge at approximately the same time. Of course all contingent on the v1 API review and tests passing.

Copy link
Member Author

Choose a reason for hiding this comment

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


// StateProgress is each possible state for each possible MachineConfigNodeType
// +enum
type StateProgress string
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't used in the API?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's used as the type definition for the conditions below and in the MCO-side code to define the type of a condition state.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 11, 2025

@isabella-janssen: This pull request references MCO-1518 which is a valid jira issue.

In response to this:

Included work:

References:

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 Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-aws-ovn-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/29dc3830-216f-11f0-9e25-d09b4c6e2079-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-aws-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/3bb6af40-216f-11f0-889f-c73e45c0a9fc-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-gcp-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/47527c80-216f-11f0-8546-79f8da557cce-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-azure-ovn-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/534c2130-216f-11f0-9309-23190eec0bf7-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-gcp-ovn-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/77a45430-216f-11f0-892e-cafce80d5b59-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-aws-ovn-single-node-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/83cdbb70-216f-11f0-8b32-faf1a49fc471-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-aws-ovn-single-node-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/96b3fd30-216f-11f0-9db1-922dc39f357a-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-metal-ipi-ovn-dualstack-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/a0c580f0-216f-11f0-8852-851bef75859d-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-metal-ipi-ovn-ipv6-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/ac1a8130-216f-11f0-943d-ea71cc75e5b9-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-metal-ipi-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/b606f0c0-216f-11f0-89e1-973f03e2f996-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-vsphere-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/c2f5cae0-216f-11f0-9adc-500ee8a9bc3e-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-vsphere-ovn-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/ce3d3690-216f-11f0-894e-52e56690aa2e-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-aws-ovn-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/5daad560-2181-11f0-9718-7ef79a6d7a66-0

@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 25, 2025

@isabella-janssen: This pull request references MCO-1518 which is a valid jira issue.

In response to this:

Merge Plan

This should merge simultaneously with

Included work:

References:

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

openshift-ci-robot commented Apr 25, 2025

@isabella-janssen: This pull request references MCO-1518 which is a valid jira issue.

In response to this:

Merge Plan:

This should merge simultaneously with

Included work:

References:

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 Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-aws-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/98c39e20-2181-11f0-8c2c-6350eb2dc051-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-gcp-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/a68aafd0-2181-11f0-8276-d141e81fbe7b-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-azure-ovn-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/b1d0e300-2181-11f0-98ff-cba62ef0da8f-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-ci-4.19-e2e-gcp-ovn-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/bcc88100-2181-11f0-83c3-2dc68460cdea-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-aws-ovn-single-node-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/c98db310-2181-11f0-8faa-d9d3eeac90ec-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-aws-ovn-single-node-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/d5fa64e0-2181-11f0-969e-97740849b627-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-metal-ipi-ovn-dualstack-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/e31753e0-2181-11f0-86d7-8dfac17a661a-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-metal-ipi-ovn-ipv6-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/eec06790-2181-11f0-9ef8-0b77cd7c137b-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-metal-ipi-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/fd39b240-2181-11f0-8314-55f768b2b20f-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-vsphere-ovn-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/09935140-2182-11f0-941b-5929859dc36d-0

Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

@isabella-janssen: This PR was included in a payload test run from openshift/origin#29701
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.19-e2e-vsphere-ovn-techpreview-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/16ce76a0-2182-11f0-885d-522ccd87f166-0

@sdodson sdodson merged commit 9b80d67 into openshift:master Apr 25, 2025
20 of 24 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.19.0-202504251855.p0.g9b80d67.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. 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. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants