Documentation ¶
Index ¶
- Constants
- func CurrentDaemonSet(ctx context.Context, cli client.Client, namespace, name string) (client.Object, error)
- func DesiredDaemonSet(contour *model.Contour, contourImage, envoyImage string) *appsv1.DaemonSet
- func EnsureDataPlane(ctx context.Context, cli client.Client, contour *model.Contour, ...) error
- func EnsureDataPlaneDeleted(ctx context.Context, cli client.Client, contour *model.Contour) error
- func EnvoyPodSelector(contour *model.Contour) *metav1.LabelSelector
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, namespace, name string) (client.Object, error)
CurrentDaemonSet returns the current DaemonSet resource for the provided contour.
func DesiredDaemonSet ¶
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 EnsureDataPlane ¶
func EnsureDataPlane(ctx context.Context, cli client.Client, contour *model.Contour, contourImage, envoyImage string) error
EnsureDataPlane ensures an Envoy data plane (daemonset or deployment) exists for the given contour.
func EnsureDataPlaneDeleted ¶
EnsureDataPlaneDeleted ensures the daemonset or deployment for the provided contour is deleted if Contour owner labels exist.
func EnvoyPodSelector ¶
func EnvoyPodSelector(contour *model.Contour) *metav1.LabelSelector
EnvoyPodSelector returns a label selector using "app: envoy" as the key/value pair.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.