mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
af22702b93
Add two new attributes 'VERSION_ID.major' and 'VERSION_ID.minor' to the os_release feature. These represent the first two components of the OS version (version components are assumed to be separated by a dot). E.g. if VERSION_ID would be 1.2.rc3 major and minor versions would be 1 and 2, respectively: feature.node.kubernetes.io/system-os_release.VERSION_ID=1.2.rc3 feature.node.kubernetes.io/system-os_release.VERSION_ID.major=1 feature.node.kubernetes.io/system-os_release.VERSION_ID.minor=2 The version components must be purely numerical in order for them to be advertised. This way they can be fully (and reliably) utilized in nodeAffinity, including relative (Gt and Lt) operators. |
||
---|---|---|
.. | ||
system.go |