context

package
v0.0.0-...-3669d16 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Component names
	ComponentPostgres = "postgres"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	gocontext.Context
	client.Client

	// CommonLabels returns common cluster labels to use on objects
	CommonLabels() map[string]string

	// PodLabels returns specific labels to use on specific PODs
	PodLabels(component string) map[string]string

	// ListOption returns list options to use to filter for own objects
	ListOption() (client.ListOption, error)

	// SetMeta sets Namespace and Labels in ObjectMeta, sets ownerreference to current PatroniPostgres instance
	SetMeta(metav1.Object) error

	// Clientset returns *kubernetes.Clientset
	Clientset() *kubernetes.Clientset
}

Jump to

Keyboard shortcuts

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