yugabytedb

package
v1.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package operator to manage Kubernetes storage.

Index

Constants

This section is empty.

Variables

View Source
var ClusterResource = opkit.CustomResource{
	Name:    customResourceName,
	Plural:  customResourceNamePlural,
	Group:   yugabytedbv1alpha1.CustomResourceGroup,
	Version: yugabytedbv1alpha1.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(yugabytedbv1alpha1.YBCluster{}).Name(),
}

Functions

func NewCluster

func NewCluster(c *yugabytedbv1alpha1.YBCluster, context *clusterd.Context) *cluster

Types

type ClusterController

type ClusterController struct {
	// contains filtered or unexported fields
}

func NewClusterController

func NewClusterController(context *clusterd.Context, containerImage string) *ClusterController

func (*ClusterController) OnAdd

func (c *ClusterController) OnAdd(obj interface{})

func (*ClusterController) OnUpdate

func (c *ClusterController) OnUpdate(oldObj, newObj interface{})

func (*ClusterController) StartWatch

func (c *ClusterController) StartWatch(namespace string, stopCh chan struct{}) error

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

func New

func New(context *clusterd.Context, rookImage string) *Operator

New creates an operator instance

func (*Operator) Run

func (o *Operator) Run() error

Run the operator instance

Jump to

Keyboard shortcuts

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