Documentation ¶
Index ¶
- Constants
- func GetRepoReaderRoleBindingName(name, namespace string) string
- type Config
- type StashController
- func (c *StashController) EnsureScaledownCronJob(restic *api.Restic) error
- func (c *StashController) EnsureSidecar(restic *api.Restic)
- func (c *StashController) EnsureSidecarDeleted(namespace, name string)
- func (c *StashController) NewDaemonSetWebhook() hooks.AdmissionHook
- func (c *StashController) NewDeploymentWebhook() hooks.AdmissionHook
- func (c *StashController) NewRecoveryWebhook() hooks.AdmissionHook
- func (c *StashController) NewReplicaSetWebhook() hooks.AdmissionHook
- func (c *StashController) NewReplicationControllerWebhook() hooks.AdmissionHook
- func (c *StashController) NewRepositoryWebhook() hooks.AdmissionHook
- func (c *StashController) NewResticWebhook() hooks.AdmissionHook
- func (c *StashController) NewStatefulSetWebhook() hooks.AdmissionHook
- func (c *StashController) Run(stopCh <-chan struct{})
- func (c *StashController) RunInformers(stopCh <-chan struct{})
Constants ¶
View Source
const ( SidecarClusterRole = "stash-sidecar" ScaledownJobRole = "stash-scaledownjob" )
View Source
const (
RecoveryEventComponent = "stash-recovery"
)
Variables ¶
This section is empty.
Functions ¶
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 (*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{})
Click to show internal directories.
Click to hide internal directories.