Files
my-rook-config/pkg/castled/ceph.go
T
2016-08-26 14:12:20 -07:00

33 lines
620 B
Go

package castled
import (
"fmt"
"github.com/quantum/clusterd/pkg/orchestrator"
)
const (
cephKey = "/castle/ceph"
cephInstanceName = "default"
)
type clusterInfo struct {
FSID string
MonitorSecret string
AdminSecret string
Name string
Monitors map[string]*CephMonitorConfig
}
// Get the root ceph service key
func GetRootCephServiceKey(applied bool) string {
var prefix string
if applied {
prefix = orchestrator.ClusterConfigAppliedKey
} else {
prefix = orchestrator.ClusterConfigDesiredKey
}
return fmt.Sprintf("%s/services/ceph/%s", prefix, cephInstanceName)
}