operator

package
v0.0.0-...-fc21188 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Resync time.Duration = time.Minute
)

Functions

func ConfigConf

func ConfigConf(bc *RedisBootstrapConfig)

func K8sClientset

func K8sClientset(kubeconfig string) (kubernetes.Interface, error)

Types

type Operator

type Operator struct {
	Interval time.Duration
	Timeout  time.Duration
	// contains filtered or unexported fields
}

Inspired by:

https://github.com/rook/rook/blob/master/pkg/operator/operator.go

func Run

func (*Operator) CreateCRD

func (op *Operator) CreateCRD(recipe *pb.CrdRecipient) error

func (*Operator) CreateCRDorTPR

func (op *Operator) CreateCRDorTPR(recipe crd.Recipient) error

type RedisBootstrapConfig

type RedisBootstrapConfig struct {
	Kubeconfig string
	Kind       string
	Name       string
	Namespace  string
	Role       RedisRole
	Port       int
	Dir        string
	LogLevel   int
}

type RedisInfo

type RedisInfo struct {
	RedisReplicationInfo
}

type RedisReplicationInfo

type RedisReplicationInfo struct {
	Role       string
	MasterHost string
	MasterPort int
}

type RedisRole

type RedisRole string
const (
	RedisHighAvailabilityRedis    RedisRole = "redis"
	RedisHighAvailabilitySentinel RedisRole = "sentinel"
)

Jump to

Keyboard shortcuts

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