Documentation ¶
Index ¶
- func ContourDeploymentPodSelector() *metav1.LabelSelector
- func CurrentDeployment(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) (*appsv1.Deployment, error)
- func DesiredDeployment(contour *operatorv1alpha1.Contour, image string) *appsv1.Deployment
- func EnsureDeployment(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour, ...) error
- func EnsureDeploymentDeleted(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error
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.