Documentation ¶
Overview ¶
Package mds to manage a rook file system.
Package mds for file systems.
Package mds to manage a rook file system.
Package mds to manage a rook file system.
Index ¶
- Variables
- func CreateFileSystem(context *clusterd.Context, clusterName string, f *model.FilesystemRequest, ...) error
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Filesystem
- type FilesystemController
- type FilesystemList
- type FilesystemSpec
- type MetadataServerSpec
Constants ¶
This section is empty.
Variables ¶
var FilesystemResource = opkit.CustomResource{ Name: "filesystem", Plural: "filesystems", Group: k8sutil.CustomResourceGroup, Version: k8sutil.V1Alpha1, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(Filesystem{}).Name(), }
FilesystemResource represents the file system custom resource
Functions ¶
func CreateFileSystem ¶ added in v0.6.0
func Kind ¶ added in v0.6.0
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func Resource ¶ added in v0.6.0
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
Types ¶
type Filesystem ¶ added in v0.6.0
type Filesystem struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec FilesystemSpec `json:"spec"` }
Filesystem is the definition of the file system custom resource
type FilesystemController ¶ added in v0.6.0
type FilesystemController struct {
// contains filtered or unexported fields
}
FilesystemController represents a controller for file system custom resources
func NewFilesystemController ¶ added in v0.6.0
func NewFilesystemController(context *clusterd.Context, versionTag string, hostNetwork bool) *FilesystemController
NewFilesystemController create controller for watching file system custom resources created
func (*FilesystemController) StartWatch ¶ added in v0.6.0
func (c *FilesystemController) StartWatch(namespace string, stopCh chan struct{}) error
StartWatch watches for instances of Filesystem custom resources and acts on them
type FilesystemList ¶ added in v0.6.0
type FilesystemList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Filesystem `json:"items"` }
FilesystemList is the definition of a list of file systems
type FilesystemSpec ¶ added in v0.6.0
type FilesystemSpec struct { // The metadata pool settings MetadataPool pool.PoolSpec `json:"metadataPool"` // The data pool settings DataPools []pool.PoolSpec `json:"dataPools"` // The mds pod info MetadataServer MetadataServerSpec `json:"metadataServer"` }
FilesystemSpec represent the spec of a file system
type MetadataServerSpec ¶ added in v0.6.0
type MetadataServerSpec struct { // The number of metadata servers that are active. The remaining servers in the cluster will be in standby mode. ActiveCount int32 `json:"activeCount"` // Whether each active MDS instance will have an active standby with a warm metadata cache for faster failover. // If false, standbys will still be available, but will not have a warm metadata cache. ActiveStandby bool `json:"activeStandby"` // The affinity to place the mds pods (default is to place on all available node) with a daemonset Placement k8sutil.Placement `json:"placement"` }