feat: add multidoc check to the Talos quirks module
Make it report true for Talos >= 1.5.0. Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
This commit is contained in:
parent
0b4a9777fc
commit
4feb94ca09
@ -74,3 +74,15 @@ func (q Quirks) UseZSTDCompression() bool {
|
|||||||
|
|
||||||
return q.v.GTE(minVersionZstd)
|
return q.v.GTE(minVersionZstd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var minVersionMultidoc = semver.MustParse("1.5.0")
|
||||||
|
|
||||||
|
// SupportsMultidoc returns true if the Talos version supports multidoc machine configs.
|
||||||
|
func (q Quirks) SupportsMultidoc() bool {
|
||||||
|
// if the version doesn't parse, we assume it's latest Talos
|
||||||
|
if q.v == nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return q.v.GTE(minVersionMultidoc)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user