Skip to content
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

aws: Skip Route53 cleanup for clusters without DNS #14707

Merged

Conversation

hakman
Copy link
Member

@hakman hakman commented Dec 2, 2022

Small cleanup improvement to get tests passing again in kubernetes/cloud-provider-aws#532:

Ginkgo ran 1 suite in 2m57.709627616s
Test Suite Passed
/home/prow/go/src/k8s.io/cloud-provider-aws
I1202 08:29:47.704238   27602 delete_cluster.go:128] Looking for cloud resources to delete
Error: error querying for route53 zones: AccessDenied:
	User: arn:aws:iam::607362164682:user/awstester is not authorized to perform: route53:ListHostedZones
	because no identity-based policy allows the route53:ListHostedZones action
		status code: 403, request id: 911b0c35-ba05-4950-880f-3d78acabfddb
make: *** [Makefile:133: test-e2e] Error 1

/cc @olemarkus @johngmyers @rifelpet

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/provider/aws Issues or PRs related to aws provider labels Dec 2, 2022
@hakman hakman force-pushed the aws_skip_route53_none_dns_cleanup branch from 102237a to 4868c2b Compare December 2, 2022 08:57
@hakman
Copy link
Member Author

hakman commented Dec 2, 2022

/test pull-kops-e2e-aws-dns-none

@hakman
Copy link
Member Author

hakman commented Dec 2, 2022

/test pull-kops-e2e-kubernetes-do-gossip

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 2, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: olemarkus

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 2, 2022
@k8s-ci-robot k8s-ci-robot merged commit c058516 into kubernetes:master Dec 2, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.26 milestone Dec 2, 2022
@hakman hakman deleted the aws_skip_route53_none_dns_cleanup branch December 2, 2022 10:06
@johngmyers
Copy link
Member

I don't think route53:ListHostedZones is too much to ask for.

I don't like passing in the Cluster. It might not exist anymore: one of our testing AWS accounts had all of its S3 buckets deleted.

I was thinking of using ListResourcesAWS() for a utility to clean up EKS clusters.

@hakman
Copy link
Member Author

hakman commented Dec 3, 2022

I don't think route53:ListHostedZones is too much to ask for.

It is not in general, but for getting started or restricted accounts it may be a problem. Gossip and None DNS don't require it, so most optimal is not to get there.

I don't like passing in the Cluster.

Would passing only the value of cluster.UsesNoneDNS() make it better?

@johngmyers
Copy link
Member

Would passing only the value of cluster.UsesNoneDNS() make it better?

Perhaps an exclusion list of (a subset of) AWS services?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/aws Issues or PRs related to aws provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants