deployment

package
v1.23.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContourDeploymentPodSelector

func ContourDeploymentPodSelector(contour *model.Contour) *metav1.LabelSelector

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

func CurrentDeployment

func CurrentDeployment(ctx context.Context, cli client.Client, namespace, name string) (client.Object, error)

CurrentDeployment returns the Deployment resource for the provided contour.

func DesiredDeployment

func DesiredDeployment(contour *model.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 *model.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 *model.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