Documentation ¶
Index ¶
- Constants
- func CurrentDaemonSet(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) (*appsv1.DaemonSet, error)
- func DesiredDaemonSet(contour *operatorv1alpha1.Contour, contourImage, envoyImage string) *appsv1.DaemonSet
- func EnsureDaemonSet(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour, ...) error
- func EnsureDaemonSetDeleted(ctx context.Context, cli client.Client, contour *operatorv1alpha1.Contour) error
- func EnvoyDaemonSetPodSelector() *metav1.LabelSelector
Constants ¶
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.