statefulset

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatefulSetWithName

func GetStatefulSetWithName(
	ctx context.Context,
	h *helper.Helper,
	name string,
	namespace string,
) (*appsv1.StatefulSet, error)

GetStatefulSetWithName func

Types

type StatefulSet

type StatefulSet struct {
	// contains filtered or unexported fields
}

StatefulSet -

func NewStatefulSet

func NewStatefulSet(
	statefulset *appsv1.StatefulSet,
	timeout time.Duration,
) *StatefulSet

NewStatefulSet returns an initialized NewStatefulset.

func (*StatefulSet) CreateOrPatch

func (s *StatefulSet) CreateOrPatch(
	ctx context.Context,
	h *helper.Helper,
) (ctrl.Result, error)

CreateOrPatch - creates or patches a statefulset, reconciles after Xs if object won't exist.

func (*StatefulSet) Delete

func (s *StatefulSet) Delete(
	ctx context.Context,
	h *helper.Helper,
) error

Delete - delete a statefulset.

func (*StatefulSet) GetStatefulSet

func (s *StatefulSet) GetStatefulSet() appsv1.StatefulSet

GetStatefulSet - get the statefulset object.

Jump to

Keyboard shortcuts

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