Documentation ¶
Index ¶
- func CopyBinariesForDaemon(target string) error
- func Provision(context *clusterd.Context, agent *OsdAgent) error
- func RunFilestoreOnDevice(context *clusterd.Context, mountSourcePath, mountPath string, ...) error
- func StartOSD(context *clusterd.Context, osdType, osdID, osdUUID string, cephArgs []string) error
- func WriteConfigFile(context *clusterd.Context, cluster *cephconfig.ClusterInfo, ...) error
- type DesiredDevice
- type Device
- type DeviceOsdIDEntry
- type DeviceOsdMapping
- type OsdAgent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyBinariesForDaemon ¶
CopyBinariesForDaemon copies the "tini" and "rook" binaries to a shared volume at the target path. This is necessary for the filestore on a device scenario when rook needs to mount a directory in the same container as the ceph process so it can be unmounted upon exit.
func RunFilestoreOnDevice ¶
func WriteConfigFile ¶
func WriteConfigFile(context *clusterd.Context, cluster *cephconfig.ClusterInfo, kv *k8sutil.ConfigMapKVStore, osdID int, device bool, storeConfig config.StoreConfig, nodeName, location string) error
Types ¶
type DesiredDevice ¶
DesiredDevice keeps track of the desired settings for a device
type DeviceOsdIDEntry ¶
type DeviceOsdIDEntry struct { Data int // OSD ID that has data stored here Metadata []int // OSD IDs (multiple) that have metadata stored here Config DesiredDevice // Device specific config options LegacyPartitionsFound bool // Whether legacy rook partitions were found }
type DeviceOsdMapping ¶
type DeviceOsdMapping struct {
Entries map[string]*DeviceOsdIDEntry // device name to OSD ID mapping entry
}
func (*DeviceOsdMapping) String ¶
func (m *DeviceOsdMapping) String() string
type OsdAgent ¶
type OsdAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(context *clusterd.Context, devices []DesiredDevice, metadataDevice, directories string, forceFormat bool, location string, storeConfig config.StoreConfig, cluster *cephconfig.ClusterInfo, nodeName string, kv *k8sutil.ConfigMapKVStore) *OsdAgent
Click to show internal directories.
Click to hide internal directories.