Skip to content
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

🌱 Add missing constants to v1alpha3 package from release-0.3 #5238

Merged

Conversation

sbueringer
Copy link
Member

Signed-off-by: Stefan Büringer [email protected]

What this PR does / why we need it:

Implements #5236 (comment)

Looks like we missed a few constants we have on our release-0.3 branch. This breaks API consumers when trying to migrate from v1alpha3 to v1alpha4. (of course only when they are used in API consumer code)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 15, 2021
@sbueringer sbueringer changed the title 🌱 Add missing constants of v1alpha3 package from release-0.3 🌱 Add missing constants to v1alpha3 package from release-0.3 Sep 15, 2021
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 15, 2021
Copy link
Member

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 15, 2021
@stmcginnis
Copy link
Contributor

/lgtm

Matches what is in api/v1alpha4/comon_types.go. But I don't actually see these being used anywhere. Is there a reason to define them in v1alpha3?

@sbueringer
Copy link
Member Author

sbueringer commented Sep 15, 2021

/lgtm

Matches what is in api/v1alpha4/comon_types.go. But I don't actually see these being used anywhere. Is there a reason to define them in v1alpha3?

Idea was to keep them sync with the constants in the v1alpha3 APIs of the release-0.3 branch. Because we shouldn't drop constants in the v1alpha3 types between release-0.3 and main. (the constants should be used on the release-0.3 branch).

So it's not really for us, it's for "external" consumers of our API.

@stmcginnis
Copy link
Contributor

So it's not really for us, it's for "external" consumers of our API.

Thanks, that makes a lot of sense now. :)

Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 15, 2021
@k8s-ci-robot k8s-ci-robot merged commit 8bb9afa into kubernetes-sigs:master Sep 15, 2021
@k8s-ci-robot k8s-ci-robot added this to the v0.4 milestone Sep 15, 2021
@sbueringer sbueringer deleted the pr-sync-v1alpha3-const branch September 15, 2021 16:03
sadysnaat pushed a commit to spectrocloud/cluster-api that referenced this pull request Sep 16, 2021
…ha3-const

🌱 Add missing constants to v1alpha3 package from release-0.3
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants