operatormanager

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: AGPL-3.0 Imports: 19 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(confRest *rest.Config, fileName string, scheme *runtime.Scheme, log logr.Logger, opt Options) (*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

type Options added in v0.3.0

type Options struct {
	PspName                 string
	OperatorImage           string
	DockerImage             string
	EtcdHost                string
	CRDValidation           bool
	MajorVersionUpgradeMode string
	PostgresletNamespace    string
	SidecarsConfigMapName   string
	PodAntiaffinity         bool
}

Options

Jump to

Keyboard shortcuts

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