Documentation
¶
Overview ¶
Package rgw to manage a rook object store.
Package rgw to manage a rook rgw.
Package rgw for the Ceph object store.
Package rgw to manage a rook object store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ObjectStoreResource = opkit.CustomResource{ Name: "objectstore", Plural: "objectstores", Group: k8sutil.CustomResourceGroup, Version: k8sutil.V1Alpha1, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(ObjectStore{}).Name(), }
ObjectStoreResource represents the object store custom resource
Functions ¶
func InstanceName ¶ 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 GatewaySpec ¶ added in v0.6.0
type GatewaySpec struct {
// The port the rgw service will be listening on (http)
Port int32 `json:"port"`
// The port the rgw service will be listening on (https)
SecurePort int32 `json:"securePort"`
// The number of pods in the rgw replicaset. If "allNodes" is specified, a daemonset is created.
Instances int32 `json:"instances"`
// Whether the rgw pods should be started as a daemonset on all nodes
AllNodes bool `json:"allNodes"`
// The name of the secret that stores the ssl certificate for secure rgw connections
SSLCertificateRef string `json:"sslCertificateRef"`
// The affinity to place the rgw pods (default is to place on any available node)
Placement k8sutil.Placement `json:"placement"`
}
type ObjectStore ¶ added in v0.6.0
type ObjectStore struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`
Spec ObjectStoreSpec `json:"spec"`
}
ObjectStore is the definition of the object store custom resource
func ModelToSpec ¶ added in v0.6.0
func ModelToSpec(store model.ObjectStore, namespace string) *ObjectStore
type ObjectStoreController ¶ added in v0.6.0
type ObjectStoreController struct {
// contains filtered or unexported fields
}
ObjectStoreController represents a controller object for object store custom resources
func NewObjectStoreController ¶ added in v0.6.0
func NewObjectStoreController(context *clusterd.Context, versionTag string, hostNetwork bool) *ObjectStoreController
NewObjectStoreController create controller for watching object store custom resources created
func (*ObjectStoreController) StartWatch ¶ added in v0.6.0
func (c *ObjectStoreController) StartWatch(namespace string, stopCh chan struct{}) error
StartWatch watches for instances of ObjectStore custom resources and acts on them
type ObjectStoreList ¶ added in v0.6.0
type ObjectStoreList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []ObjectStore `json:"items"`
}
ObjectstoreList is the definition of a list of object stores for CRDs (1.7+)
type ObjectStoreSpec ¶ added in v0.6.0
type ObjectStoreSpec struct {
// The metadata pool settings
MetadataPool pool.PoolSpec `json:"metadataPool"`
// The data pool settings
DataPool pool.PoolSpec `json:"dataPool"`
// The rgw pod info
Gateway GatewaySpec `json:"gateway"`
}
ObjectStoreSpec represent the spec of a pool
type ObjectstoreList ¶ added in v0.6.0
type ObjectstoreList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []ObjectStore `json:"items"`
}
ObjectstoreList is the definition of a list of object stores for TPRs (pre-1.7)