-
Notifications
You must be signed in to change notification settings - Fork 430
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
✨ Initial support for conditions for AzureMachinePool #978
✨ Initial support for conditions for AzureMachinePool #978
Conversation
Hi @nprokopic. 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. |
/assign @justinsb |
/ok-to-test |
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.
Looks like a bit of copypasta still left over in the comments.
config/crd/bases/exp.infrastructure.cluster.x-k8s.io_azuremachinepools.yaml
Outdated
Show resolved
Hide resolved
Well that's embarrassing 🤦 Thank you for catching this, fixed it. |
@nprokopic: The following test 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. |
This test failure:
Is this maybe due to Any advice here? |
@nprokopic the api diff job helps reviewers catch breaking changes to the API but it's not perfect. In this case, you're change affects the Status field of an experimental type so it's okay to ignore. The job is marked as optional so it won't be blocking to merge the PR. |
Thanks for the explanation!
Great :) |
} | ||
|
||
// SetConditions will set the given conditions on an AzureMachinePool object | ||
func (amp *AzureMachinePool) SetConditions(conditions clusterv1.Conditions) { |
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.
Should this change also include defining basic conditions for AzureMachinePools and setting them in the controller like https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/714/files#diff-825ec7ff34f98855f2347c7f7769438dR284 did?
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.
Sounds reasonable. I'll look into it.
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.
@nprokopic are you still planning to do this? If not, we can merge this as-is and mark the issue as incomplete
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.
Yes, I do, just couldn't find the time in the previous weeks.
Can we merge this and have a separate pull request for setting conditions?
Lately I was working on conditions implementation for Giant Swarm's azure-operator (where we use CAPI and CAPZ types), here's what we added for current alpha release (so not fully completed yet) for Cluster, AzureCluster and MachinePool giantswarm/azure-operator#1112, and here is current WIP for AzureMachinePool giantswarm/azure-operator#1123.
Once we wrap these up, I would take a look at what's currently done in CAPZ, and then open an issue with suggestions for conditions that would make sense for CAPZ.
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.
Okay let's do that.
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: CecileRobertMichon 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add
Status.Conditions
toAzureMachinePool
.Status.Conditions
were added toAzureCluster
andAzureMachine
in #714. With this change the resolution of issue #671, which also mentionsStatus.Conditions
forAzureMachinePool
, is more complete.Which issue(s) this PR fixes:
Fixes partially #671
TODOs:
Release note: