daemonset

package
v0.0.0-...-d7ad274 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// EnvoyContainerName is the name of the Envoy container.
	EnvoyContainerName = "envoy"
	// ShutdownContainerName is the name of the Shutdown Manager container.
	ShutdownContainerName = "shutdown-manager"
)

Variables

This section is empty.

Functions

func CurrentDaemonSet

func CurrentDaemonSet(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) (*appsv1.DaemonSet, error)

CurrentDaemonSet returns the current DaemonSet resource for the provided sesame.

func DesiredDaemonSet

func DesiredDaemonSet(Sesame *operatorv1alpha1.Sesame, SesameImage, envoyImage string) *appsv1.DaemonSet

DesiredDaemonSet returns the desired DaemonSet for the provided sesame using SesameImage as the shutdown-manager/envoy-initconfig container images and envoyImage as Envoy's container image.

func EnsureDaemonSet

func EnsureDaemonSet(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame, SesameImage, envoyImage string) error

EnsureDaemonSet ensures a DaemonSet exists for the given sesame.

func EnsureDaemonSetDeleted

func EnsureDaemonSetDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error

EnsureDaemonSetDeleted ensures the DaemonSet for the provided sesame is deleted if Sesame owner labels exist.

func EnvoyDaemonSetPodSelector

func EnvoyDaemonSetPodSelector() *metav1.LabelSelector

EnvoyDaemonSetPodSelector returns a label selector using "app: envoy" as the key/value pair.

TODO [danehans]: Update to use "sesame.operator.projectsesame.io/daemonset-envoy" when https://github.com/projectsesame/Sesame/issues/1821 is fixed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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