kubernetes-sigs / kueue

Kubernetes-native Job Queueing
https://kueue.sigs.k8s.io
Apache License 2.0
1.48k stars 265 forks source link

TAS: validate that kubernetes.io/hostname can only be at the lowest level #3688

Open mimowo opened 2 hours ago

mimowo commented 2 hours ago

What would you like to be added:

validation to prevent setting kubernetes.io/hostname in the middle of hierarchy.

Why is this needed:

To guide user and avoid mis-configuration. This is particularly important because we have dedicated checks in our code, active only when kubernetes.io/hostname is at the lowest level.

mimowo commented 2 hours ago

@tenzen-y @mbobrovskyi @PBundyra