-
Notifications
You must be signed in to change notification settings - Fork 582
Machine API: Add cloud providers' specs #1005
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
Machine API: Add cloud providers' specs #1005
Conversation
|
/assign |
machine/v1beta1/types_awsprovider.go
Outdated
| // MachineCreation indicates whether the machine has been created or not. If not, | ||
| // it should include a reason and message for the failure. | ||
| MachineCreation AWSMachineProviderConditionType = "MachineCreation" | ||
| AWSMachineCreation AWSMachineProviderConditionType = "MachineCreation" |
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.
Is it worth sharing some of these in a shared common_consts.go kind of file?
c28a021 to
0535cb1
Compare
JoelSpeed
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 quick ask on the new conditions and I think I'm happy with this
| // MachineCreated indicates whether the machine has been created or not. If not, | ||
| // it should include a reason and message for the failure. | ||
| MachineCreation ConditionType = "MachineCreation" |
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 think we should add a note that this is used on certain platforms and it's preferred to use the other condition type MachineCreated
0535cb1 to
8706515
Compare
|
/lgtm |
soltysh
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.
You're missing a lot of godocs and a few other comments
f031a5b to
7f351d5
Compare
28165b0 to
39d51e9
Compare
soltysh
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.
A nit about missing // +optional tag and you're good to go
| // CredentialsSecret is a reference to the secret with Azure credentials. | ||
| CredentialsSecret *corev1.SecretReference `json:"credentialsSecret,omitempty"` | ||
| // Location is the region to use to create the instance | ||
| Location string `json:"location,omitempty"` |
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.
You need // +optional above each optional, iow. each omitempty
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.
Thanks, all should be fixed now
soltysh
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.
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexander-demichev, JoelSpeed, soltysh 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 |
This PR adds cloud providers' specs, these definitions are a copy-paste from different repos.
https://github.com/openshift/machine-api-operator/tree/master/pkg/apis/vsphereprovider/v1beta1
https://github.com/openshift/cluster-api-provider-azure/tree/master/pkg/apis/azureprovider/v1beta1
https://github.com/openshift/cluster-api-provider-gcp/tree/master/pkg/apis/gcpprovider/v1beta1