pgc

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareForRestore

func PrepareForRestore(clientset *kubeapi.Client, clusterName, namespace string) error

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 Schedule added in v1.1.0

type Schedule struct {
	ID           int
	CronSchedule string
}

type SecretData added in v1.1.0

type SecretData struct {
	Name string
	Data UserSecretData
}

type Templates added in v1.2.0

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

type UserSecretData added in v1.1.0

type UserSecretData struct {
	Password string `json:"password"`
	Roles    string `json:"roles"`
	Name     string `json:"username"`
	UsersTXT string `json:"users.txt"`
}

Jump to

Keyboard shortcuts

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