daemonset

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 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, contour *operatorv1alpha1.Contour) (*appsv1.DaemonSet, error)

CurrentDaemonSet returns the current DaemonSet resource for the provided contour.

func DesiredDaemonSet

func DesiredDaemonSet(contour *operatorv1alpha1.Contour, contourImage, envoyImage string) *appsv1.DaemonSet

DesiredDaemonSet returns the desired DaemonSet for the provided contour using contourImage 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, contour *operatorv1alpha1.Contour, contourImage, envoyImage string) error

EnsureDaemonSet ensures a DaemonSet exists for the given contour.

func EnsureDaemonSetDeleted

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

EnsureDaemonSetDeleted ensures the DaemonSet for the provided contour is deleted if Contour 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 "contour.operator.projectcontour.io/daemonset-envoy" when https://github.com/projectcontour/contour/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