mirror of https://github.com/kubernetes/kops.git
Recognize debian bullseye as having "broken" resolv.conf
Debian bullseye also has the loopback resolv.conf that needs special handling.
This commit is contained in:
parent
9fbe66051f
commit
689f66a390
|
@ -95,6 +95,11 @@ func (d *Distribution) HasLoopbackEtcResolvConf() bool {
|
||||||
// Ubuntu > 16.04 has it
|
// Ubuntu > 16.04 has it
|
||||||
return d.version > 16.04
|
return d.version > 16.04
|
||||||
}
|
}
|
||||||
|
// TODO: Should we read /etc/resolv.conf??
|
||||||
|
if d.IsDebianFamily() {
|
||||||
|
// Bullseye has it
|
||||||
|
return d.version >= 11.0
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue