yugabytedb

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 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 = k8sutil.CustomResource{
	Name:    customResourceName,
	Plural:  customResourceNamePlural,
	Group:   yugabytedbv1alpha1.CustomResourceGroup,
	Version: yugabytedbv1alpha1.Version,
	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{})

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