Generate valid file Pod Names and test for them

Ensure that pods coming from the unit test configuration validate,
and that proper names are generated.

Closes #744
I meant literal "file-" :). Just mak s human reading easier.
On Aug 3, 2014 6:31 PM, "Clayton Coleman" <notifications@github.com> wrote:

> In pkg/kubelet/config/file.go:
>
> >  	sha := simpleSubdomainSafeEncoding.EncodeToString(hasher.Sum(nil))
> > -	if len(sha) > 20 {
> > -		sha = sha[:20]
> > -	}
> > -	return sha
> > +	return fmt.Sprintf("%.15s%.30s", name, sha)
>
> The source is added by podconfig in the final name to ensure namespacing.
> Should already be that.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/749/files#r15738224>
> .
>