const maxConfigLength … // Generate a pod name that is unique among nodes by appending the nodeName. func generatePodName(name string, nodeName types.NodeName) string { … } func applyDefaults(pod *api.Pod, source string, isFile bool, nodeName types.NodeName) error { … } type defaultFunc … var ErrStaticPodTriedToUseClusterTrustBundle … // tryDecodeSinglePod takes data and tries to extract valid Pod config information from it. func tryDecodeSinglePod(data []byte, defaultFn defaultFunc) (parsed bool, pod *v1.Pod, err error) { … } func tryDecodePodList(data []byte, defaultFn defaultFunc) (parsed bool, pods v1.PodList, err error) { … }