controller

package
v0.0.0-...-6f6c25d Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 64 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SidecarClusterRole = "stash-sidecar"
	ScaledownJobRole   = "stash-scaledownjob"
)
View Source
const (
	RecoveryEventComponent = "stash-recovery"
)

Variables

This section is empty.

Functions

func GetRepoReaderRoleBindingName

func GetRepoReaderRoleBindingName(name, namespace string) string

Types

type Config

type Config struct {
	ClientConfig *rest.Config
	KubeClient   kubernetes.Interface
	StashClient  cs.Interface
	CRDClient    crd_cs.ApiextensionsV1beta1Interface
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(clientConfig *rest.Config) *Config

func (*Config) New

func (c *Config) New() (*StashController, error)

type StashController

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

func (*StashController) EnsureScaledownCronJob

func (c *StashController) EnsureScaledownCronJob(restic *api.Restic) error

func (*StashController) EnsureSidecar

func (c *StashController) EnsureSidecar(restic *api.Restic)

func (*StashController) EnsureSidecarDeleted

func (c *StashController) EnsureSidecarDeleted(namespace, name string)

func (*StashController) NewDaemonSetWebhook

func (c *StashController) NewDaemonSetWebhook() hooks.AdmissionHook

func (*StashController) NewDeploymentWebhook

func (c *StashController) NewDeploymentWebhook() hooks.AdmissionHook

func (*StashController) NewRecoveryWebhook

func (c *StashController) NewRecoveryWebhook() hooks.AdmissionHook

func (*StashController) NewReplicaSetWebhook

func (c *StashController) NewReplicaSetWebhook() hooks.AdmissionHook

func (*StashController) NewReplicationControllerWebhook

func (c *StashController) NewReplicationControllerWebhook() hooks.AdmissionHook

func (*StashController) NewRepositoryWebhook

func (c *StashController) NewRepositoryWebhook() hooks.AdmissionHook

func (*StashController) NewResticWebhook

func (c *StashController) NewResticWebhook() hooks.AdmissionHook

func (*StashController) NewStatefulSetWebhook

func (c *StashController) NewStatefulSetWebhook() hooks.AdmissionHook

func (*StashController) Run

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

func (*StashController) RunInformers

func (c *StashController) RunInformers(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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