-
Notifications
You must be signed in to change notification settings - Fork 87
add dedicated hosts pruning to aws-janitor #232
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
base: master
Are you sure you want to change the base?
add dedicated hosts pruning to aws-janitor #232
Conversation
d177103 to
3236e0e
Compare
|
/hold placing hold for testing |
f514627 to
d1ed690
Compare
d1ed690 to
1b835bb
Compare
1b835bb to
32b00fc
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rvanderp3 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 |
32b00fc to
9659fd6
Compare
|
confirmed that this change is able to identify and deallocate dedicated hosts |
9659fd6 to
cd22220
Compare
Co-authored-by: Julio Faerman <[email protected]>
cd22220 to
62c5d1d
Compare
|
/hold cancel |
|
/assign @richardcase |
mtulio
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
|
@richardcase would you be able to take a look at this one? thanks! |
@rvanderp3 - yes for sure, i've added it to the list of things to do first thing on Monday. |
richardcase
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.
Looks good @rvanderp3
| @@ -0,0 +1,127 @@ | |||
| /* | |||
| Copyright 2019 The Kubernetes Authors. | |||
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.
nit:
| Copyright 2019 The Kubernetes Authors. | |
| Copyright 2025 The Kubernetes Authors. |
| return set, errors.Wrapf(err, "couldn't describe DedicatedHosts for %q in %q", opts.Account, opts.Region) | ||
| } | ||
|
|
||
| type host struct { |
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.
Could be called dedicatedHost but not strongly opinionated on this :)
|
Lets double check that there aren't any dedicated hosts in the AWS accounts that shouldn't be deleted before merging. /hold |
|
Asked in #sig-k8s-infra: https://kubernetes.slack.com/archives/CCK68P2Q2/p1753794579701899 |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Adding EC2 dedicated hosts to aws-janitor so that such feature can also be added to cluster-api-provider-aws to prevent leaking dedicated hosts.