-
Notifications
You must be signed in to change notification settings - Fork 262
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
Implementation of Conditions feature in Openstack Machine Controller #972
Conversation
Welcome @swapnilbabladkar! |
Hi @swapnilbabladkar. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Please provide with a /ok-to-test label |
/ok-to-test |
is this duplicate to #952 ? |
✔️ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready! 🔨 Explore the source changes: d1a845f 🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-sigs-cluster-api-openstack/deploys/61a09acf15d8590007f118e7 😎 Browse the preview: https://deploy-preview-972--kubernetes-sigs-cluster-api-openstack.netlify.app |
…condition_const to conditions_consts
@swapnilbabladkar Many unused constants still exist. Please add constants we use only. I think we do not need conditions for v1alpha3. Can you remove from v1alpha3? |
- Removed conditions from v1alpha3 - Conditions support for following : InstanceRunningCondition InstanceNotFoundReason InstanceProvisionFailedReason WaitingForClusterInfrastructureReason WaitingForBootstrapDataReason - Changed Machine to Instance in conditions
Yes I now have only the constants being used in conditions for Machine. Also I have removed conditions from v1alpha3 in the latest commit : ac3a67e. Thanks |
Please review changes |
@swapnilbabladkar Still PR includes |
486f044
to
1548ca1
Compare
@swapnilbabladkar updated PR, but still |
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.
Please squash your commits before merging
@@ -126,6 +127,21 @@ type OpenStackMachineStatus struct { | |||
// controller's output. | |||
// +optional | |||
FailureMessage *string `json:"errorMessage,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.
Please don't update the v1alpha3. We're not going to release (at least to my understanding) any new v1alpha3 version.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: swapnilbabladkar 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 |
- Removal of conditions support for v1alpha3 - Addition of conditions instanceStatus.State() switch statement in controllers/openstackmachine_controller.go
@swapnilbabladkar v1beta1 API is added(#1047 ). Please update this PR to change v1beta1 API. |
@swapnilbabladkar: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
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.
@swapnilbabladkar Still working on this?
@@ -0,0 +1,35 @@ | |||
/* |
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.
Now that v1beta1 is created, add api/v1beta1/condition_consts.go instead of this,please.
@@ -19,6 +19,7 @@ package v1alpha4 | |||
import ( |
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.
Now that v1beta1 is created, update api/v1beta1/openstackmachine_types.go instead of this, please.
@@ -684,6 +684,13 @@ func (in *OpenStackMachineStatus) DeepCopyInto(out *OpenStackMachineStatus) { | |||
*out = new(string) |
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.
After add or update files under api/v1beta1/ directory, you need to run make generate
again.
@swapnilbabladkar: PR needs rebase. 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. |
@swapnilbabladkar are you still working on this PR? |
Closing this PR, #1288 will replace it |
Changes made in the following files:
v1alpha3 - openstackmachine_types.go , conditions_consts.go
v1alpha4 - openstackmachine_types.go , conditions_consts.go
controllers - openstackmachine_controller.go
What this PR does / why we need it:
This a work in progress for implemnting conditions feature for Cluster API Openstack - Machine controller
**Which issue(s) this PR fixes format, will close the issue(s) when PR gets merged)*:
#832
/hold