statefulset

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0, BSD-3-Clause, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SleepTime = 10 * time.Second

SleepTime - minimum time to sleep before checking the state of controller pod

Functions

func DeleteStatefulset

func DeleteStatefulset(ctx context.Context, statefulset *appsv1.StatefulSet, client client.Client, reqLogger logr.Logger) error

DeleteStatefulset -- Deletes a StatefulSet

func GetStatefulset

func GetStatefulset(ctx context.Context, instance csiv1.CSIDriver, client client.Client, reqLogger logr.Logger) (*appsv1.StatefulSet, error)

GetStatefulset -- Gets a Statefulset

func New

func New(instance csiv1.CSIDriver, driverEnv []corev1.EnvVar, driverVolumeMounts []corev1.VolumeMount, podVolumes []corev1.Volume,
	args []string, sidecarMap map[csiv1.ImageType]ctrlconfig.SidecarParams, podConstraints csiv1.PodSchedulingConstraints) *appsv1.StatefulSet

New - Creates a statefulset element for the given driver and component

func SyncStatefulset

func SyncStatefulset(ctx context.Context, statefulset *appsv1.StatefulSet, client client.Client, reqLogger logr.Logger) error

SyncStatefulset - Syncs a StatefulSet

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL