Commit Graph

162 Commits

Author SHA1 Message Date
Peter Rifel dd3d64943f
Migrate remaining EC2 resource types to aws-sdk-go-v2 2024-04-13 16:01:39 -04:00
Peter Rifel f0c0c29121
Migrate EC2 Networking resource types to aws-sdk-go-v2 2024-04-13 16:01:39 -04:00
Peter Rifel 13df20c702
Migrate route53 to aws-sdk-go-v2 2024-04-01 11:02:40 -05:00
Peter Rifel d4d39eb0fe
Migrate autoscaling to aws-sdk-go-v2 2024-03-31 23:04:06 -05:00
Peter Rifel 27af6ac0be
Revert some unnecessary changes in cloudmock during aws-sdk-go-v2 migration 2024-03-31 08:52:20 -05:00
Peter Rifel 2626a354c5
Migrate ELB to aws-sdk-go-v2 2024-03-31 07:28:28 -05:00
Peter Rifel 7b8bcc46d9
Migrate elbv2 to aws-sdk-go-v2 2024-03-30 13:53:40 -05:00
Peter Rifel 8882bcbafb
Migrate IAM to aws-sdk-go-v2 2024-03-30 10:46:57 -05:00
Peter Rifel e7a8b65c29
Migrate SQS to aws-sdk-go-v2 2024-03-30 06:53:56 -05:00
Peter Rifel 8191e78838
Update EventBridge to aws-sdk-go-v2 2024-03-29 07:05:36 -05:00
justinsb 2a9343a168 Generate revisions of NLB objects, and introduce cleanup phase
This lets us safely make changes to otherwise immutable fields, in
particular for adding security groups to NLBs created without them.

We detect the older versions, and create deletion tasks to remove
them.  These tasks can be deferred, and we expect them to be
deferred to a "prune" phase that runs after cluster apply.

Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
2024-02-17 11:41:15 -05:00
Kubernetes Prow Robot 8f71e68d68
Merge pull request #16339 from justinsb/refactor_targetgroups
target group: refactor discovery into awsup
2024-02-14 14:33:00 -08:00
justinsb eb27e30153 target group: refactor discovery into awsup
This sets us up to support multiple generations of target groups,
needed if we want to support adding SecurityGroups to the NLB.
2024-02-14 15:48:50 -05:00
justinsb d50f1968a9 deletion: tolerate concurrent SQS queue deletion
Ignore the not-found error.
2024-02-10 14:29:45 -05:00
justinsb d9f49e2adf clockmock: Add more methods that take a context
We're trying to pass more contexts around, but we need the mocks to
support the context forms of the methods.
2024-02-10 11:07:57 -05:00
justinsb c9b9a47b94 cloudmock: Implement WithContext methods for ELBv2
Also switch methods that were not passing a context.
2024-02-04 15:52:29 -05:00
justinsb 314e2b954b Refactor: Move NLB listing function into awsup
As pruning becomes more a part of tasks, there is more overlap between
`kops update cluster` and `kops delete cluster`.
2024-01-30 04:43:48 +02:00
justinsb 49dfdabb79 cloudmock: Add context functions to mock 2023-11-09 08:17:10 -05:00
Ciprian Hacman 65c24a9f3d Add missing mock functions 2023-11-09 08:17:10 -05:00
John Gardiner Myers 2fbc7cf979 aws: Attach security groups to NLBs 2023-10-06 22:33:31 -07:00
Peter Rifel 5f82b2231e
Add DescribeNetworkInterfacesPages to cloudmock 2023-09-06 21:47:42 -05:00
John Gardiner Myers ac06f4af48 AWS: Use pagination for DescribeImages call 2022-12-22 17:03:03 -08:00
Ciprian Hacman 3a046ded6b aws: Add support for managing target group attributes 2022-12-07 18:56:14 +02:00
Kubernetes Prow Robot 0acd57eb01
Merge pull request #14635 from johngmyers/ipv6-subnet-assign
Set AssignIPv6AddressOnCreation on subnets
2022-11-23 08:46:19 -08:00
John Gardiner Myers f1c838f513 Set AssignIPv6AddressOnCreation on subnets 2022-11-22 22:52:49 -08:00
John Gardiner Myers 2e61fd9fa7 Fix missing locking in mock ModifySubnetAttribute() 2022-11-22 21:35:06 -08:00
John Gardiner Myers 25b7dc21fa Create NLB instead of CLB for bastion 2022-10-29 17:00:00 -07:00
Ole Markus With eb003a19b1 Fix bugs and typo in iam resource deletion logic 2022-08-21 20:01:20 +02:00
Ole Markus With cdea136e64 Support multiple lifecycle hooks for the same ASG in our mocks 2022-08-18 20:23:34 +02:00
Nicolas Sterchele 73b6ed4150
aws: introduce maximum instance lifetime in cluster
The maximum instance lifetime is an AWS only feature and specifies the
maximum amount of time (in seconds) that an instance can be in service
before it is terminated and replaced.
A common use case might be a requirement to replace your instances on a
schedule because of internal security policies or external compliance
controls.
2022-07-04 20:38:33 +02:00
Ole Markus With ce2e877aeb Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
Ole Markus With f8525ce6f9 Add integration test for really long cluster names 2022-03-15 20:44:26 +01:00
Jeroen van Erp 255a0322c9
Allow PrefixList for sshAccess and kubernetesApiAccess
Signed-off-by: Jeroen van Erp <jeroen@hierynomus.com>
2022-02-15 14:37:28 +01:00
Ole Markus With ea9d0de847 Handle default in templating instead of ig population 2021-12-30 09:01:43 +01:00
Ole Markus With 66e6ed0850 Delete ENIs tagged with k8s tags 2021-12-22 21:45:01 +01:00
Kubernetes Prow Robot 7ab4f43500
Merge pull request #12864 from johngmyers/rbn-subnet
Set Resource Based Naming on managed subnets
2021-12-19 21:03:25 -08:00
Ole Markus With a4e609c450 Set the default LT version to the new LT version 2021-12-11 14:53:05 +01:00
John Gardiner Myers 9f9316a921 Set Resource Based Naming on managed subnets 2021-12-05 17:42:29 -08:00
Peter Rifel fd2370c8e8
Ignore InvalidAction errors when tagging IAM Instance Profiles 2021-12-02 08:12:16 -06: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
Peter Rifel 5d82ce0b5f
Update cloudmock and integration test inputs to use aws-test partition 2021-10-29 23:07:30 -05:00
Peter Rifel cedb8f813c
Use the SQS Queue's ARN reference 2021-10-20 20:47:26 -07:00
Ole Markus With d98994686a Use sg rule ids and tags where possible 2021-09-12 14:32:58 +02:00
Peter Rifel 60c86e1a44
Enable IMDS IPv6 endpoint when IPv6AddressCount > 0 2021-09-09 07:24:14 -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
John Gardiner Myers 024b3653c0 Set lifecycle on WarmPool task 2021-05-28 20:05:44 -07:00
Ciprian Hacman cedbe1f360 Add initial support for configuring IPv6 with AWS 2021-05-19 06:21:07 +03:00
Kubernetes Prow Robot 2649cbc598
Merge pull request #10995 from haugenj/release-1.19
Add NTH Queue Processor Mode
2021-04-22 12:15:58 -07:00