Skip to content

mce-2.4: OpenstackProviderSpec moved to to machinev1alpha1#2119

Merged
openshift-merge-robot merged 2 commits intoopenshift:mce-2.4from
2uasimojo:HIVE-2308/openstack-schema
Sep 26, 2023
Merged

mce-2.4: OpenstackProviderSpec moved to to machinev1alpha1#2119
openshift-merge-robot merged 2 commits intoopenshift:mce-2.4from
2uasimojo:HIVE-2308/openstack-schema

Conversation

@2uasimojo
Copy link
Copy Markdown
Member

@2uasimojo 2uasimojo commented Sep 26, 2023

This PR backports fixes for OpenstackProviderSpec having been moved from cluster-api-provider-openstack to openshift/api/machine/v1alpha1 as part of the Great Revendor (#2052).

For the sake of form, both related commits are backported, even though the first one was bogus (the second one gets us into a good and clean state).

HIVE-2308

This was missed in openshift#2052 / 26a0b81.

HIVE-2308

(cherry picked from commit 1f1ec2c)
Since the recent revendor (openshift#2052 / 26a0b81), OpenstackProviderSpec
(embedded in MachineSets under OpenStack) stopped being able to
unmarshal. This is because its schema moved from
github.com/openshift/cluster-api-provider-openstack to
github.com/openshift/api/machine/v1alpha1 and the revendor picked up
this move from the installer code: see
openshift/installer#6382

This commit moves our references accordingly to match that upstream
code.

Quirk 1: Strangely, this one type is in o/api/machine v1alpha1 even
though everything else in o/api/machine is in v1beta1.

Quirk 2: o/api/machine v1alpha1's registration methods don't actually
register the OpenstackProviderSpec type. (Why??) So we have to register
it explicitly, as the installer does.

This more or less reverts the prior attempt at openshift#2114 / 1f1ec2c, which
turned out to be completely redundant (the added registration call ended
up in the same place as the one on the previous line).

HIVE-2308

(cherry picked from commit 43376d8)
@2uasimojo
Copy link
Copy Markdown
Member Author

/assign @lleshchi

@2uasimojo 2uasimojo changed the base branch from master to mce-2.4 September 26, 2023 15:16
@openshift-ci openshift-ci Bot requested review from abutcher and lleshchi September 26, 2023 15:18
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 26, 2023
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 26, 2023

@2uasimojo: 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/test-infra repository. I understand the commands that are listed here.

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 26, 2023

Codecov Report

Merging #2119 (48c1b16) into mce-2.4 (4418e43) will increase coverage by 0.07%.
The diff coverage is 40.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           mce-2.4    #2119      +/-   ##
===========================================
+ Coverage    57.49%   57.57%   +0.07%     
===========================================
  Files          187      187              
  Lines        25749    25834      +85     
===========================================
+ Hits         14804    14873      +69     
- Misses        9709     9716       +7     
- Partials      1236     1245       +9     
Files Coverage Δ
pkg/util/scheme/scheme.go 100.00% <100.00%> (ø)
pkg/controller/machinepool/openstackactuator.go 0.00% <0.00%> (ø)

... and 13 files with indirect coverage changes

@lleshchi
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 26, 2023
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 2uasimojo, lleshchi

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-merge-robot openshift-merge-robot merged commit df0d53e into openshift:mce-2.4 Sep 26, 2023
@2uasimojo 2uasimojo deleted the HIVE-2308/openstack-schema branch September 26, 2023 18:39
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants