fix(tls_dir): include desired dir
This commit is contained in:
@ -201,7 +201,7 @@ func (ctx *renderContext) templateFuncs() map[string]interface{} {
|
||||
return
|
||||
},
|
||||
|
||||
"tls_dir": func(cluster, caName, name, profile, label, reqJson string) (s string, err error) {
|
||||
"tls_dir": func(dir, cluster, caName, name, profile, label, reqJson string) (s string, err error) {
|
||||
ca, err := secretData.CA(cluster, caName)
|
||||
if err != nil {
|
||||
return
|
||||
@ -212,8 +212,6 @@ func (ctx *renderContext) templateFuncs() map[string]interface{} {
|
||||
return
|
||||
}
|
||||
|
||||
dir := "/etc/tls/" + name
|
||||
|
||||
return asYaml([]config.FileDef{
|
||||
{
|
||||
Path: path.Join(dir, "ca.crt"),
|
||||
|
Reference in New Issue
Block a user