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

🌱 Deprecate NoCloudProvider and add CloudProviderEnabled #2108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adilGhaffarDev
Copy link
Member

What this PR does / why we need it:
Deprecate NoCloudProvider and add CloudProviderEnabled

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 #

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from adilghaffardev. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 22, 2024
@adilGhaffarDev adilGhaffarDev force-pushed the deprecate-noCloudProvider/adil branch from 7f7a168 to 18178b7 Compare November 22, 2024 08:11
@adilGhaffarDev
Copy link
Member Author

cc @lentzi90

@tuminoid
Copy link
Member

cc @lentzi90

Btw use
/cc @lentzi90
So instead of just pinging him, it actually requests review.

Copy link
Member

@lentzi90 lentzi90 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!
I think we need to add some validation or other logic to make sure we don't end up in confusing situations where these two contradict each other. Do you think it is possible to do this and also add a testcase for it?
I'm not sure if it is best to do this in the validating webhook or if we can somehow detect later which one of them were set explicitly.

// If set to false, CAPM3 will use node labels to set providerID on the kubernetes nodes.
// If set to true, providerID is set on nodes by other entities and CAPM3 uses the value of the providerID on the m3m resource.
// +optional
CloudProviderEnabled bool `json:"cloudProviderEnabled,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

Can you add to the description that the default value is false, and that this takes precedence over NoCloudProvider?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants