Documentation
¶
Index ¶
- Constants
- func AnnotateObject(ctx context.Context, c client.Client, obj client.Object, ...) error
- func DeannotateObject(ctx context.Context, c client.Client, obj client.Object, annotation string) error
- func GetInitImage(ctx context.Context, cr *api.PerconaXtraDBCluster, cli client.Client) (string, error)
- func GetOperatorNamespace() (string, error)
- func GetWatchNamespace() (string, error)
- func OperatorPod(ctx context.Context, cl client.Client) (corev1.Pod, error)
- func OwnerRef(ro runtime.Object, scheme *runtime.Scheme) (metav1.OwnerReference, error)
- func PauseCluster(ctx context.Context, cl client.Client, cr *api.PerconaXtraDBCluster) (bool, error)
- func PauseClusterWithWait(ctx context.Context, cl client.Client, cr *api.PerconaXtraDBCluster, ...) errordeprecated
- func SetControllerReference(owner runtime.Object, obj metav1.Object, scheme *runtime.Scheme) error
- func StartStopSignalHandler(client client.Client, namespaces []string) context.Context
- func UnpauseCluster(ctx context.Context, cl client.Client, cr *api.PerconaXtraDBCluster) (bool, error)
- func UnpauseClusterWithWait(ctx context.Context, cl client.Client, cr *api.PerconaXtraDBCluster) (err error)deprecated
Constants ¶
View Source
const WatchNamespaceEnvVar = "WATCH_NAMESPACE"
Variables ¶
This section is empty.
Functions ¶
func AnnotateObject ¶ added in v1.14.0
func AnnotateObject(ctx context.Context, c client.Client, obj client.Object, annotations map[string]string) error
AnnotateObject adds the specified annotations to the object
func DeannotateObject ¶ added in v1.14.0
func DeannotateObject(ctx context.Context, c client.Client, obj client.Object, annotation string) error
DeannotateObject removes the specified annotation from the object
func GetInitImage ¶ added in v1.15.0
func GetOperatorNamespace ¶ added in v1.11.0
GetOperatorNamespace returns the namespace of the operator pod
func GetWatchNamespace ¶ added in v1.11.0
GetWatchNamespace returns the namespace the operator should be watching for changes
func OperatorPod ¶ added in v1.7.0
func PauseCluster ¶ added in v1.16.0
func PauseClusterWithWait
deprecated
added in
v1.16.0
func SetControllerReference ¶
SetControllerReference sets owner as a owner for the object obj
func StartStopSignalHandler ¶ added in v1.7.0
StartStopSignalHandler starts gorutine which is waiting for termination signal and returns a context which is cancelled when operator can really stop.
func UnpauseCluster ¶ added in v1.16.0
func UnpauseClusterWithWait
deprecated
added in
v1.16.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.