Skip to content

Commit

Permalink
fqdn for zone as well via defaulting webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
auhlig committed Jun 20, 2022
1 parent 11fefe9 commit 4e7cfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disco/api/v1/record_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var _ webhook.Defaulter = &Record{}
// Default implements webhook.Defaulter so a webhook will be registered for the type
func (r *Record) Default() {
if r.Spec.ZoneName == "" {
r.Spec.ZoneName = disco.DefaultDNSZoneName
r.Spec.ZoneName = util.EnsureFQDN(disco.DefaultDNSZoneName)
}

// Ensure a FQDN for CNAME records.
Expand Down

0 comments on commit 4e7cfd4

Please sign in to comment.