-
Notifications
You must be signed in to change notification settings - Fork 594
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
✨ Set Paused condition on reconciled resources status upon reconciliation being paused #5383
✨ Set Paused condition on reconciled resources status upon reconciliation being paused #5383
Conversation
Welcome @theobarberbany! |
Hi @theobarberbany. 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-sigs/prow repository. |
0cef4cb
to
11bc890
Compare
/assign @nrb |
/ok-to-test |
/test pull-cluster-api-provider-aws-test |
/test pull-cluster-api-provider-aws-test |
How often do we clean up the VPCs? cc. @richardcase |
e5e4cfa
to
d86d093
Compare
aws-janitor should run after we finish using the account. This could also be that we are using more VPCs in general in the tests.....but this is e2e. However, this is the unit tests which shouldn't be created any VPCs and so its probably coming from the resource tracking code we have in the tests. |
Got it, thanks @richardcase , it looks like it is passing now :) |
@theobarberbany are you happy with this now? Is this ready for a final review? |
@theobarberbany - thanks for this. Could you squash your commits please? I think we are then good to get this merged. |
Sets paused condition on AWSMachine Sets paused on AWSCluster Sets paused condition on AWSManagedMachinePool Sets paused condition for ROSAMachinePool Sets paused condition for ROSAControlPlane Sets paused condition on AWSManagedControlPlane Sets paused condition on EKSConfig Adds paused helper functions This change adds the paused helper utilities from upstream cluster api. It modifies them to not require v1beta2conditions. This is so we can use similar code until the conditions changes are out of beta.
b02ccc4
to
ff89188
Compare
@richardcase Have squashed :) |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: richardcase 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 |
/lgtm Thanks Theo! |
While kubernetes-sigs#5394 and kubernetes-sigs#5383 added support for patching a cluster/status in the cluster.x-k8s.io API group, neither added the patch permission for the associated controllers. This commit adds RBAC support for patching cluster/status Signed-off-by: Nolan Brubaker <[email protected]>
What type of PR is this?
/kind api-change
What this PR does / why we need it:
edit (@damdo):
To follow the recent updates in the CAPI Provider contract for InfraMachines: kubernetes-sigs/cluster-api#11275 we should set the
Paused=true
condition on the resource's status to acknowledge we detected the addition of thecluster.x-k8s.io/paused
annotation on a resource and paused its reconciliation to fulfill the user's request.AWSManagedCluster is handled in a separate PR as there are API changes involved. See #5394
Checklist:
Release note: