Cleanup kops-controller Route53 record during cluster deletion

This commit is contained in:
Peter Rifel 2021-02-03 22:39:24 -06:00
parent 1885ccee17
commit c28c4c728d
No known key found for this signature in database
GPG Key ID: BC6469E5B16DB2B6
1 changed files with 1 additions and 1 deletions

View File

@ -1855,7 +1855,7 @@ func ListRoute53Records(cloud fi.Cloud, clusterName string) ([]*resources.Resour
remove := false
// TODO: Compute the actual set of names?
if prefix == ".api" || prefix == ".api.internal" || prefix == ".bastion" {
if prefix == ".api" || prefix == ".api.internal" || prefix == ".bastion" || prefix == ".kops-controller.internal" {
remove = true
} else if strings.HasPrefix(prefix, ".etcd-") {
remove = true