forked from rook/rook
move core rados packages under cluster folder move daemons under daemon pkg rename flex crd package to attachment pin dep to k8s 1.8.2
14 lines
313 B
Go
14 lines
313 B
Go
package test
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
"path"
|
|
)
|
|
|
|
func CreateConfigDir(configDir string) {
|
|
os.MkdirAll(configDir, 0744)
|
|
ioutil.WriteFile(path.Join(configDir, "client.admin.keyring"), []byte("key = adminsecret"), 0644)
|
|
ioutil.WriteFile(path.Join(configDir, "mon.keyring"), []byte("key = monsecret"), 0644)
|
|
}
|