fix: ca and tls dir should be absolute

This commit is contained in:
Mikaël Cluseau 2018-07-07 14:29:30 +11:00
parent 9ba988f413
commit 54acc215ad

View File

@ -251,7 +251,7 @@ func (ctx *renderContext) templateFuncs(secretData *SecretData, ctxMap map[strin
return return
} }
dir := path.Join("etc", "tls-ca", name) dir := "/" + path.Join("etc", "tls-ca", name)
return asYaml([]config.FileDef{ return asYaml([]config.FileDef{
{ {
@ -304,7 +304,7 @@ func (ctx *renderContext) templateFuncs(secretData *SecretData, ctxMap map[strin
return return
} }
dir := path.Join("etc", "tls", name) dir := "/" + path.Join("etc", "tls", name)
return asYaml([]config.FileDef{ return asYaml([]config.FileDef{
{ {