rgw

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

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

View Source
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 InstanceName(name string) string

func Kind added in v0.6.0

func Kind(kind string) schema.GroupKind

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

func (*ObjectStore) Create added in v0.6.0

func (s *ObjectStore) Create(context *clusterd.Context, version string, hostNetwork bool) error

Start the rgw manager

func (*ObjectStore) Delete added in v0.6.0

func (s *ObjectStore) Delete(context *clusterd.Context) error

Delete the object store. WARNING: This is a very destructive action that deletes all metadata and data pools.

func (*ObjectStore) Update added in v0.6.0

func (s *ObjectStore) Update(context *clusterd.Context, version string, hostNetwork bool) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL