k8s

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OperatorPod added in v1.7.1

func OperatorPod(cl client.Client) (corev1.Pod, error)

func OwnerRef

func OwnerRef(ro runtime.Object, scheme *runtime.Scheme) (metav1.OwnerReference, error)

OwnerRef returns OwnerReference to object

func SetControllerReference

func SetControllerReference(owner runtime.Object, obj metav1.Object, scheme *runtime.Scheme) error

SetControllerReference sets owner as a owner for the object obj

func StartStopSignalHandler added in v1.7.1

func StartStopSignalHandler(client client.Client, namespaces []string) <-chan struct{}

StartStopSignalHandler starts gorutine which is waiting for termination signal and returns chan for indication when operator can really stop.

Types

This section is empty.

Jump to

Keyboard shortcuts

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