Documentation ¶
Index ¶
- Constants
- type OperatorManager
- func (m *OperatorManager) InstallOrUpdateOperator(ctx context.Context, namespace string) error
- func (m *OperatorManager) IsOperatorDeletable(ctx context.Context, namespace string) (bool, error)
- func (m *OperatorManager) IsOperatorInstalled(ctx context.Context, namespace string) (bool, error)
- func (m *OperatorManager) UninstallOperator(ctx context.Context, namespace string) error
- func (m *OperatorManager) UpdateAllOperators(ctx context.Context) error
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 ¶
IsOperatorDeletable returns true when there's no running instance operated by the operator
func (*OperatorManager) IsOperatorInstalled ¶
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
Click to show internal directories.
Click to hide internal directories.