deployment

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContourDeploymentPodSelector

func ContourDeploymentPodSelector() *metav1.LabelSelector

ContourDeploymentPodSelector returns a label selector using "app: contour" as the key/value pair.

TODO [danehans]: Update to use "contour.operator.projectcontour.io/deployment-contour" when https://github.com/projectcontour/contour/issues/1821 is fixed.

func CurrentDeployment

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

CurrentDeployment returns the Deployment resource for the provided contour.

func DesiredDeployment

func DesiredDeployment(contour *operatorv1alpha1.Contour, image string) *appsv1.Deployment

DesiredDeployment returns the desired deployment for the provided contour using image as Contour's container image.

func EnsureDeployment

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

EnsureDeployment ensures a deployment using image exists for the given contour.

func EnsureDeploymentDeleted

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

EnsureDeploymentDeleted ensures the deployment for the provided contour is deleted if Contour owner labels exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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