-
Notifications
You must be signed in to change notification settings - Fork 585
Rename Infrastructure.CloudProvider to Platform #149
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
Rename Infrastructure.CloudProvider to Platform #149
Conversation
|
The field name Platform is more synonymous with what installer installs. And clubbing that info into /approve |
config/v1/types_infrastructure.go
Outdated
|
|
||
| type InfrastructureStatus struct { | ||
| // cloudProvider is the IaaS provider that is running the cluster. | ||
| // Platform is the IaaS provider that is running the cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not actually an IaaS provider. Let's fix the message too here. (remember, you must use lower case names for fields)
platform is the underlying infrastructure provider for the cluster. This value controls whether infrastructure automation such as service load balancers, dynamic volume provisioning, machine creation and deletion, and other integrations are enabled. If unset, no infrastructure automation is enabled.
However, we also need to correct the constants to be consistent with our API rules (should be AWS, OpenStack) and we should have an explicit None option. That can be a follow up, but must happen before 4.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually we also need to document the rules for changes are (are users allowed to change this, what happens if it is wrong, etc).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a stab at implementing this feedback, PTAL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smarterclayton ping, would love to wrap this up today if possible
be384e8 to
8d79f80
Compare
|
|
||
| // openStackPlatform represents OpenStack. | ||
| OpenStackPlatform PlatformType = "openstack" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add libvirt too? We already at least have machine management
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
8d79f80 to
586402d
Compare
|
ping @deads2k @smarterclayton |
config/v1/types_infrastructure.go
Outdated
| LibvirtPlatform PlatformType = "libvirt" | ||
|
|
||
| // nonePlatform means there is no infrastructure provider. | ||
| NonePlatform PlatformType = "none" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be using Kube style constants unless we have a reason not to. None, LibVirt, AWS, OpenStack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks for the feedback
smarterclayton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment about constants
Rename the Infrastructure CloudProvider field to Platform in an effort to more clearly establish the value is not directly mapped to Kubernetes cloud provider constants. Kubernetes cloud provider names may be derived from the value.
586402d to
410d994
Compare
|
All feedback addressed, PTAL |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, ironcladlou, smarterclayton The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
Rename the Infrastructure CloudProvider field to Platform in an effort to more
clearly establish the value is not directly mapped to Kubernetes cloud provider
constants. Kubernetes cloud provider names may be derived from the value.
/cc @openshift/sig-network-edge @openshift/installer @derekwaynecarr @deads2k @rajatchopra @flaper87 @smarterclayton @abhinavdahiya @staebler