Skip to content

Commit

Permalink
Merge pull request #12289 from rifelpet/external-dns-owner
Browse files Browse the repository at this point in the history
Include kops- prefix in external-dns TXT record
  • Loading branch information
k8s-ci-robot committed Sep 8, 2021
2 parents 8dee92b + 24e463a commit a97f453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func precreateDNS(ctx context.Context, cluster *kops.Cluster, cloud fi.Cloud) er
} else {
changeset.Add(rrs.New(dnsHostname, []string{PlaceholderIP}, PlaceholderTTL, rrstype.A))
if cluster.Spec.ExternalDNS.Provider == kops.ExternalDNSProviderExternalDNS {
changeset.Add(rrs.New(dnsHostname, []string{fmt.Sprintf("\"heritage=external-dns,external-dns/owner=%s\"", cluster.GetClusterName())}, PlaceholderTTL, rrstype.TXT))
changeset.Add(rrs.New(dnsHostname, []string{fmt.Sprintf("\"heritage=external-dns,external-dns/owner=kops-%s\"", cluster.GetClusterName())}, PlaceholderTTL, rrstype.TXT))
}
}

Expand Down

0 comments on commit a97f453

Please sign in to comment.