Skip to content

Register OpenStackProviderConfig/v1alpha1 with master scheme#2114

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
2uasimojo:HIVE-2308/register-openstackproviderconfig
Sep 14, 2023
Merged

Register OpenStackProviderConfig/v1alpha1 with master scheme#2114
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
2uasimojo:HIVE-2308/register-openstackproviderconfig

Conversation

@2uasimojo
Copy link
Copy Markdown
Member

@2uasimojo 2uasimojo commented Sep 13, 2023

This was missed in #2052 / 26a0b81.

HIVE-2308

@openshift-ci openshift-ci Bot requested review from lleshchi and suhanime September 13, 2023 22:14
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 13, 2023
Comment thread pkg/util/scheme/scheme.go
machineapi.AddToScheme(hive_scheme)
monitoringv1.AddToScheme(hive_scheme)
oappsv1.Install(hive_scheme)
oconfigv1.Install(hive_scheme)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

latent: remove redundant reg of openshift/api/config/v1

@2uasimojo
Copy link
Copy Markdown
Member Author

/assign @abutcher
/cc @lleshchi

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 13, 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 13, 2023

Codecov Report

Merging #2114 (1f1ec2c) into master (28a3122) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2114   +/-   ##
=======================================
  Coverage   57.55%   57.55%           
=======================================
  Files         187      187           
  Lines       25810    25810           
=======================================
  Hits        14854    14854           
  Misses       9711     9711           
  Partials     1245     1245           
Files Changed Coverage Δ
pkg/util/scheme/scheme.go 100.00% <100.00%> (ø)

@abutcher
Copy link
Copy Markdown
Member

/lgtm

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

openshift-ci Bot commented Sep 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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 559939f into openshift:master Sep 14, 2023
@2uasimojo 2uasimojo deleted the HIVE-2308/register-openstackproviderconfig branch September 14, 2023 22:34
2uasimojo added a commit to 2uasimojo/hive that referenced this pull request Sep 18, 2023
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
2uasimojo added a commit to 2uasimojo/hive that referenced this pull request Sep 26, 2023
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)
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