memcached: kubedb.dev/memcached/pkg/controller Index | Files

package controller

import "kubedb.dev/memcached/pkg/controller"

Index

Package Files

appbinding.go config.go controller.go deployment.go dormant.go memcached.go monitor.go rbac.go service.go workqueue.go

Constants

const (
    CONFIG_SOURCE_VOLUME           = "custom-config"
    CONFIG_SOURCE_VOLUME_MOUNTPATH = "/usr/config/"
    DATA_SOURCE_VOLUME             = "data-volume"
    DATA_SOURCE_VOLUME_MOUNTPATH   = "/data"
)

type Controller Uses

type Controller struct {
    amc.Config
    *amc.Controller
    // contains filtered or unexported fields
}

func New Uses

func New(
    clientConfig *rest.Config,
    client kubernetes.Interface,
    crdClient crd_cs.Interface,
    extClient cs.Interface,
    appCatalogClient appcat_cs.Interface,
    promClient pcm.MonitoringV1Interface,
    opt amc.Config,
    topology *core_util.Topology,
    recorder record.EventRecorder,
) *Controller

func (*Controller) EnsureCustomResourceDefinitions Uses

func (c *Controller) EnsureCustomResourceDefinitions() error

EnsureCustomResourceDefinitions ensures CRD for MySQl, DormantDatabase

func (*Controller) Init Uses

func (c *Controller) Init() error

InitInformer initializes Memcached, DormantDB amd Snapshot watcher

func (*Controller) Run Uses

func (c *Controller) Run(stopCh <-chan struct{})

Blocks caller. Intended to be called as a Go routine.

func (*Controller) RunControllers Uses

func (c *Controller) RunControllers(stopCh <-chan struct{})

RunControllers runs queue.worker

func (*Controller) StartAndRunControllers Uses

func (c *Controller) StartAndRunControllers(stopCh <-chan struct{})

StartAndRunControllers starts InformetFactory and runs queue.worker

type OperatorConfig Uses

type OperatorConfig struct {
    amc.Config

    ClientConfig     *rest.Config
    KubeClient       kubernetes.Interface
    CRDClient        crd_cs.Interface
    DBClient         cs.Interface
    AppCatalogClient appcat_cs.Interface
    PromClient       pcm.MonitoringV1Interface
}

func NewOperatorConfig Uses

func NewOperatorConfig(clientConfig *rest.Config) *OperatorConfig

func (*OperatorConfig) New Uses

func (c *OperatorConfig) New() (*Controller, error)

Package controller imports 43 packages (graph) and is imported by 6 packages. Updated 2020-07-07. Refresh now. Tools for package owners.