Merge pull request #93 from jetstack-experimental/rand-acme-http-names

Use shorter names for http solver resources
This commit is contained in:
James Munnelly 2017-09-12 21:49:19 +01:00 committed by GitHub
commit bf6b74e4cf

View File

@ -40,16 +40,16 @@ const (
// svcNameFunc returns the name for the service to solve the challenge
func svcNameFunc(crtName, domain string) string {
return dns1035(fmt.Sprintf("cm-%s-%s", crtName, domain))
return dns1035(fmt.Sprintf("cm-%s-%s", crtName, util.RandStringRunes(5)))
}
// ingNameFunc returns the name for the ingress to solve the challenge
func ingNameFunc(crtName, domain string) string {
return dns1035(fmt.Sprintf("cm-%s-%s", crtName, domain))
return dns1035(fmt.Sprintf("cm-%s-%s", crtName, util.RandStringRunes(5)))
}
func jobNameFunc(crtName, domain string) string {
return dns1035(fmt.Sprintf("cm-%s-%s", crtName, domain))
return dns1035(fmt.Sprintf("cm-%s-%s", crtName, util.RandStringRunes(5)))
}
// Solver is an implementation of the acme http-01 challenge solver protocol