Documentation ¶
Index ¶
- Variables
- func DeleteStatefulset(ctx context.Context, statefulset *appsv1.StatefulSet, client client.Client, ...) error
- func GetStatefulset(ctx context.Context, instance csiv1.CSIDriver, client client.Client, ...) (*appsv1.StatefulSet, error)
- func New(instance csiv1.CSIDriver, driverEnv []corev1.EnvVar, ...) *appsv1.StatefulSet
- func SyncStatefulset(ctx context.Context, statefulset *appsv1.StatefulSet, client client.Client, ...) error
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.