-
Notifications
You must be signed in to change notification settings - Fork 4.7k
kubetest2-kops: use ephemeral discovery store for AWS #17809
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?
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test pull-kops-aws-distro-debian13 |
|
/test pull-kops-aws-distro-debian13 |
|
/test pull-kops-aws-distro-al2023 |
|
@ameukam This needs to be tested with something that enables discovery store. Do we have such job? |
I don't think we have something like that as a presubmit. |
|
/test pull-kops-e2e-cni-cilium |
|
Please ignore the failing tests, let's get the review going first. |
hakman
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.
| // Empty the bucket first | ||
| paginator := s3.NewListObjectsV2Paginator(c.s3Client, &s3.ListObjectsV2Input{ | ||
| Bucket: aws.String(bucketName), | ||
| }) |
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.
It is a good idea, but I would expect that kOps removes all the files from the bucket, otherwise it's a bug.
This approach may hide such issues.
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.
kOps force delete the S3 buckets at shutdown whether the bucket is empty or not. This is just an extra step to guarantee the bucket is properly deleted.
Potential issues will probably not of the emptiness of the bucket.
Happy to drop this if you think it's unnecessary
a332cc7 to
aa03eb6
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
Ensure all the objects of a bucket are deleted before it's deleted. AWS S3 requires the bucket is empty before deletion Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
Ensure public access policies can be disabled when the bucket is public Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
bucket. Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
…uster on AWS. Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
aa03eb6 to
43cee3e
Compare
Ensure the discovery store S3 bucket is set with KOPS_DISCOVERY_STORE value. Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
Retake of #17520
In addition: