util: call WriteCephConfig() in cephcsi.go

This commit calls WriteCephConfig() in cephcsi.go to
create ceph.conf and keyring if it is not mounted to
be used by all cli calls and conn cmds.

Before this change, rbd-controller/omap-generator did not create
ceph.conf on startup.

Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
Rakshith R
2021-09-08 15:07:38 +05:30
committed by mergify[bot]
parent 8c8f34cf7a
commit 0a7a7f4866
3 changed files with 4 additions and 9 deletions

View File

@ -210,6 +210,10 @@ func main() {
}
}
if err = util.WriteCephConfig(); err != nil {
log.FatalLogMsg("failed to write ceph configuration file (%v)", err)
}
log.DefaultLog("Starting driver type: %v with name: %v", conf.Vtype, dname)
switch conf.Vtype {
case rbdType: