mirror of https://github.com/k3s-io/k3s
Fix CACertPath stripping trailing path components
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>pull/6976/head
parent
8ae390ff82
commit
ecb5f5a2b5
|
@ -293,7 +293,7 @@ func rotateCA(app *cli.Context, cfg *cmds.Server, sync *cmds.CertRotateCA) error
|
||||||
// Set up dummy server config for reading new bootstrap data from disk.
|
// Set up dummy server config for reading new bootstrap data from disk.
|
||||||
tmpServer := &config.Control{
|
tmpServer := &config.Control{
|
||||||
Runtime: config.NewRuntime(nil),
|
Runtime: config.NewRuntime(nil),
|
||||||
DataDir: filepath.Dir(sync.CACertPath),
|
DataDir: sync.CACertPath,
|
||||||
}
|
}
|
||||||
deps.CreateRuntimeCertFiles(tmpServer)
|
deps.CreateRuntimeCertFiles(tmpServer)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue