Files
kubernetes/pkg/apis
AxeZhan 3075a9ae96 DRA API: validate node selector labels
Previously, ValidateNodeSelector did not check that labels are valid. Now it
does for resource.k8s.io, regardless whether an object already was created with
invalid labels in an earlier Kubernetes release. Theoretically this is a
breaking change and could cause problems during an upgrade, but that is highly
unlikely in practice.

In contrast to node affinity, DRA does not ignore parse errors
(= uses NewNodeSelector, not NewLazyErrorNodeSelector), so invalid labels would
have been found instead of being silently ignored.

Even if some object has invalid labels, this only affects an alpha -> beta
upgrade which isn't guaranteed to work seamlessly.
2024-11-22 09:10:02 +01:00
..
2024-09-03 14:26:26 -04:00
2024-09-03 14:26:26 -04:00
2024-09-03 14:26:26 -04:00
2024-09-03 14:26:26 -04:00
2024-11-08 02:27:20 +00:00
2024-09-03 14:26:26 -04:00
2024-09-03 14:26:26 -04:00
2024-09-03 14:26:26 -04:00
2024-09-03 14:26:26 -04:00
2024-09-03 14:26:26 -04:00