Documentation ¶
Index ¶
- func PrepareForRestore(clientset *kubeapi.Client, clusterName, namespace string) error
- type Controller
- func (c *Controller) AddPerconaPGClusterEventHandler()
- func (c *Controller) DeleteSecrets(cr *crv1.PerconaPGCluster) error
- func (c *Controller) GenerateUsersInternalSecretsData(clusterName, clusterUser string) ([]SecretData, error)
- func (c *Controller) RunWorker(stopCh <-chan struct{}, doneCh chan<- struct{})
- func (c *Controller) UpdateUsers(usersSecret *v1.Secret, clusterName, namespace string) error
- func (c *Controller) UpdateUsersSecret(usersSecret *v1.Secret, namespace string) error
- func (c *Controller) WorkerCount() int
- type CronRegistry
- type Schedule
- type SecretData
- type Templates
- type UserSecretData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct { Client *kubeapi.Client Queue workqueue.RateLimitingInterface Informer informers.PerconaPGClusterInformer PerconaPGClusterWorkerCount int // contains filtered or unexported fields }
Controller holds the connections for the controller
func (*Controller) AddPerconaPGClusterEventHandler ¶
func (c *Controller) AddPerconaPGClusterEventHandler()
AddPerconaPGClusterEventHandler adds the pgcluster event handler to the pgcluster informer
func (*Controller) DeleteSecrets ¶ added in v1.1.0
func (c *Controller) DeleteSecrets(cr *crv1.PerconaPGCluster) error
func (*Controller) GenerateUsersInternalSecretsData ¶ added in v1.1.0
func (c *Controller) GenerateUsersInternalSecretsData(clusterName, clusterUser string) ([]SecretData, error)
func (*Controller) RunWorker ¶
func (c *Controller) RunWorker(stopCh <-chan struct{}, doneCh chan<- struct{})
RunWorker is a long-running function that will continually call the processNextWorkItem function in order to read and process a message on the workqueue.
func (*Controller) UpdateUsers ¶ added in v1.1.0
func (c *Controller) UpdateUsers(usersSecret *v1.Secret, clusterName, namespace string) error
func (*Controller) UpdateUsersSecret ¶ added in v1.2.0
func (c *Controller) UpdateUsersSecret(usersSecret *v1.Secret, namespace string) error
func (*Controller) WorkerCount ¶
func (c *Controller) WorkerCount() int
WorkerCount returns the worker count for the controller
type CronRegistry ¶ added in v1.1.0
type CronRegistry struct {
// contains filtered or unexported fields
}
func NewCronRegistry ¶ added in v1.1.0
func NewCronRegistry() CronRegistry
type SecretData ¶ added in v1.1.0
type SecretData struct { Name string Data UserSecretData }
Click to show internal directories.
Click to hide internal directories.