Ole Markus With
535f597bce
Rely on tags alone when deleting instance profiles
2022-08-20 10:25:49 +02:00
Ole Markus With
e01b233b76
Warn instead of failure if we cannot read IAM role tags
...
Since we now try to get tags for all roles in the account, we may encounter roles we are not allowed to get e.g if there is an SCP or similar with explicit deny.
2022-08-20 09:53:10 +02:00
Ole Markus With
09b604867d
Don't skip roles that don't have cluster name prefix
...
This should plug the IAM roles leak. It probably a leftover from when roles did not have tags and we relied on the name of the role instead.
2022-08-20 09:07:15 +02:00
Peter Rifel
780d9cc2ea
Fix OIDC Provider cleanup
...
A race can occur where an OIDC provider being deleted is in the List results but is not found in the Get request
2022-04-28 20:27:24 -05:00
Ole Markus With
66e6ed0850
Delete ENIs tagged with k8s tags
2021-12-22 21:45:01 +01:00
Ciprian Hacman
ea7df00719
Run hack/update-gofmt.sh
2021-12-01 22:39:50 +02:00
John Gardiner Myers
b2e9d809b7
Support IPv6 private topology
2021-11-16 21:38:03 -08:00
angeloskaltsikis
b284537885
Fix that states AWS IAM Instance Profile blocks IAM Role
...
According to [aws-cli docs](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iam/delete-role.html#examples ),
it is needed to delete any Instance profile that uses a role before deleting
the actual role. This fix adds a "blocks" statement to the IAM Instance Profile,
to declare that it should block the IAM Role deletion.
2021-11-03 18:28:36 +02:00
justinsb
fc04d91bc7
Recognize pending EC2 instances as needed deletion
...
They should be deleted as they will presumably be running shortly.
Also, this function is used from `kops dump cluster` where presumably
instances are more likely to be pending.
2021-09-18 16:10:29 -04:00
Ole Markus With
38f805c5ef
Make external-dns a drop-in for dns-controller
...
Support TXT records
2021-08-27 06:24:47 +02:00
Reilly Brogan
1b59233c8e
Debian 11: Release AMIs use same AWS Owner ID as Buster
2021-08-16 12:06:36 -05:00
Reilly Brogan
850bca8db6
Support Debian 11 Bullseye
2021-08-06 12:52:16 -05:00
John Gardiner Myers
4152667f28
Remove dead code
2021-07-14 20:05:47 -07:00
Ciprian Hacman
7bc629b683
Use DualStack API NLB for IPv6
2021-06-26 19:16:46 +03:00
Kubernetes Prow Robot
95dcaf2766
Merge pull request #11568 from h3poteto/cleanup-iam-8823
...
Cleanup InstanceProfile only that have ownership tags in delete cluster
2021-05-23 12:13:39 -07:00
AkiraFukushima
f37306c89a
Cleanup InstanceProfile only that have ownership tags in delete cluster
2021-05-23 11:13:07 +09:00
John Gardiner Myers
2cf967b2de
Fix deletion of IAM roles and policies
2021-05-21 17:46:15 -07:00
John Gardiner Myers
a41d0e21be
Delete cluster-owned service account roles upon cluster deletion
2021-05-15 12:06:45 -07:00
Jason Haugen
d07b067249
Add NTH queue-processor mode
2021-04-19 15:43:05 -05:00
Ole Markus With
5a8d47d45f
Fix bug with deleting OIDC providers
2021-03-19 20:07:22 +01:00
Bharath Vedartham
0c0767c0c9
Remove support for launch configurations
2021-03-09 09:04:15 +02:00
Peter Rifel
d52fd9f76c
Add tagging support to AWS Instance Profiles and OIDC Providers
2021-02-15 16:48:43 -06:00
Peter Rifel
6e6e072d93
Use AWS SDK const for IAM entities not found
2021-02-15 15:53:59 -06:00
Peter Rifel
c28c4c728d
Cleanup kops-controller Route53 record during cluster deletion
2021-02-03 22:41:49 -06:00
Matthew Wong
7e9392e72c
Treat InvalidDhcpOptionsId.NotFound as already-deleted
2020-12-28 17:27:34 -08:00
Ciprian Hacman
c8de1d3042
Handle cluster cleanup more gracefully
2020-11-12 18:21:04 +02:00
Ciprian Hacman
1d6a51aff9
Address review comments
2020-11-09 21:41:58 +02:00
Ciprian Hacman
fdf976809e
Use pagination when listing LaunchTemplates
2020-11-09 21:41:58 +02:00
Ciprian Hacman
565adceab9
Use LaunchTemplate versions instead of timestamped LaunchTemplates
2020-11-09 21:40:33 +02:00
Peter Rifel
4d9f0128a3
Upgrade to klog2
...
This splits up the kubernetes 1.19 PR to make it easier to keep up to date until we get it sorted out.
2020-08-16 20:56:48 -05:00
Peter Rifel
a17581e21d
Add cloud tags to AWS SSH Keys
2020-07-28 13:35:09 -05:00
Peter Rifel
a837a7ee6c
Handle NoSuchEntity errors when deleting OIDC Provider
2020-06-16 14:36:57 -05:00
Peter Rifel
a7d2161c0e
Add OIDC Provider awstask, mock, and resource lister and deleter
2020-06-16 14:36:56 -05:00
liranp
23c0cdab36
feat(spotinst): new hybrid mode
2020-05-23 21:39:04 +03:00
John Gardiner Myers
463456737c
Treat NatGatewaysNotFound error as already-deleted
2020-05-04 20:33:21 -07:00
Ciprian Hacman
59a6b065a0
Add root volume tags for CF and TF targets
2020-03-16 18:41:39 +02:00
Kashif Saadat
697f4610c6
Fix SecurityGroup check when there are no Network Interfaces associated with a LaunchTemplate
2020-03-03 16:53:33 +00:00
Ciprian Hacman
7b5a4714e0
Find launch templates based on network interface security groups
2020-02-28 07:52:59 +02:00
Matt Ouille
f025ff0e70
Add External Policies (AWS managed policy attachments)
2020-02-16 21:54:12 -08:00
Ciprian Hacman
5f930683ed
Update support for Amazon Linux 2
2020-01-28 08:13:45 +02:00
tanjunchen
7e25f9831d
nodeup/pkg/ pkg/ staticcheck
2019-12-31 15:03:39 +08:00
Kubernetes Prow Robot
f57c09b279
Merge pull request #8079 from vvbogdanov87/fix-shared-volume-removal
...
Set shared field for volume resource on delete
2019-12-28 11:35:39 -08:00
Aresforchina
8f86a1b201
pkg/resources-aws:simplify code and remove code
2019-12-23 19:00:17 +08:00
vvbogdanov87
a5c2fd5e59
Set shared field for volume resource
...
Signed-off-by: vvbogdanov87 <vvbogdanov87@gmail.com>
2019-12-08 18:11:00 +08:00
Kubernetes Prow Robot
34c7d5a64a
Merge pull request #7755 from tanjunchen/fix-up-static-error
...
fix-up staticcheck error
2019-10-13 08:20:35 -07:00
tanjunchen
28fdb358f8
fix-up staticcheck error
2019-10-08 13:53:04 +08:00
tanjunchen
43bf6bdab6
fix-up gosimple check error
2019-10-07 11:59:57 +08:00
tanjunchen
119e36be29
simplfy code
2019-10-04 22:19:08 +08:00
chentanjun
d47b4b6534
fix-typo
2019-09-25 21:34:24 +08:00
mikesplain
9e55b8230a
Update copyright notices
...
Also cleans some white spaces
2019-09-09 14:47:51 -04:00