Documentation
¶
Index ¶
- Constants
- func CurrentDaemonSet(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) (*appsv1.DaemonSet, error)
- func DesiredDaemonSet(Sesame *operatorv1alpha1.Sesame, SesameImage, envoyImage string) *appsv1.DaemonSet
- func EnsureDaemonSet(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame, ...) error
- func EnsureDaemonSetDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) 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, Sesame *operatorv1alpha1.Sesame) (*appsv1.DaemonSet, error)
CurrentDaemonSet returns the current DaemonSet resource for the provided sesame.
func DesiredDaemonSet ¶
func DesiredDaemonSet(Sesame *operatorv1alpha1.Sesame, SesameImage, envoyImage string) *appsv1.DaemonSet
DesiredDaemonSet returns the desired DaemonSet for the provided sesame using SesameImage 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, Sesame *operatorv1alpha1.Sesame, SesameImage, envoyImage string) error
EnsureDaemonSet ensures a DaemonSet exists for the given sesame.
func EnsureDaemonSetDeleted ¶
func EnsureDaemonSetDeleted(ctx context.Context, cli client.Client, Sesame *operatorv1alpha1.Sesame) error
EnsureDaemonSetDeleted ensures the DaemonSet for the provided sesame is deleted if Sesame 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 "sesame.operator.projectsesame.io/daemonset-envoy" when https://github.com/projectsesame/Sesame/issues/1821 is fixed.
Types ¶
This section is empty.