operatormanager

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PodEnvCMName Name of the pod environment configmap to create and use
	PodEnvCMName string = "postgres-pod-config"

	// SidecarsCMFluentBitConfKey Name of the key containing the fluent-bit.conf config file
	SidecarsCMFluentBitConfKey string = "fluent-bit.conf"
	// SidecarsCMExporterQueriesKey Name of the key containing the queries.yaml config file
	SidecarsCMExporterQueriesKey string = "queries.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorManager

type OperatorManager struct {
	client.Client
	runtime.Decoder

	meta.MetadataAccessor
	*runtime.Scheme
	// contains filtered or unexported fields
}

OperatorManager manages the operator

func New

func New(conf *rest.Config, fileName string, scheme *runtime.Scheme, log logr.Logger, pspName string) (*OperatorManager, error)

New creates a new `OperatorManager`

func (*OperatorManager) InstallOrUpdateOperator

func (m *OperatorManager) InstallOrUpdateOperator(ctx context.Context, namespace string) error

InstallOrUpdateOperator installs or updates the operator Stored in `OperatorManager`

func (*OperatorManager) IsOperatorDeletable

func (m *OperatorManager) IsOperatorDeletable(ctx context.Context, namespace string) (bool, error)

IsOperatorDeletable returns true when there's no running instance operated by the operator

func (*OperatorManager) IsOperatorInstalled

func (m *OperatorManager) IsOperatorInstalled(ctx context.Context, namespace string) (bool, error)

IsOperatorInstalled returns true when the operator is installed

func (*OperatorManager) UninstallOperator

func (m *OperatorManager) UninstallOperator(ctx context.Context, namespace string) error

UninstallOperator uninstalls the operator

func (*OperatorManager) UpdateAllOperators

func (m *OperatorManager) UpdateAllOperators(ctx context.Context) error

UpdateAllOperators Updates the manifests of all postgres operators managed by the postgreslet

Jump to

Keyboard shortcuts

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