mirror of
https://github.com/rancher/rke.git
synced 2025-08-30 13:02:45 +00:00
Handle dnsconfig being a pointer
This commit is contained in:
parent
5d1084ad80
commit
ac048d30b0
@ -150,7 +150,8 @@ func (c *Cluster) setClusterDefaults(ctx context.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(c.DNS.Provider) == 0 {
|
||||
if c.DNS == nil || len(c.DNS.Provider) == 0 {
|
||||
c.DNS = &v3.DNSConfig{}
|
||||
c.DNS.Provider = DefaultDNSProvider
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user