mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Never set pod.Name in kubelet config code
I think it is time to tighten up input requirements. The validation code will reject a pod that has an empty name field.
This commit is contained in:
@@ -153,7 +153,6 @@ func extractFromFile(filename string) (api.BoundPod, error) {
|
||||
return pod, fmt.Errorf("can't convert pod from file %q: %v", filename, err)
|
||||
}
|
||||
|
||||
pod.Name = simpleSubdomainSafeHash(filename)
|
||||
if len(pod.UID) == 0 {
|
||||
pod.UID = simpleSubdomainSafeHash(filename)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user