statefulset

package
v0.11.0-devel Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatefulSetWrapper

type StatefulSetWrapper struct {
	appsv1.StatefulSet
}

StatefulSetWrapper wraps a StatefulSet.

func MakeStatefulSet

func MakeStatefulSet(name, ns string) *StatefulSetWrapper

MakeStatefulSet creates a wrapper for a StatefulSet with a single container.

func (*StatefulSetWrapper) Image

func (ss *StatefulSetWrapper) Image(image string, args []string) *StatefulSetWrapper

func (*StatefulSetWrapper) Label

func (ss *StatefulSetWrapper) Label(k, v string) *StatefulSetWrapper

Label sets the label of the StatefulSet

func (*StatefulSetWrapper) Limit

Limit adds a resource limit to the default container.

func (*StatefulSetWrapper) Name

Name updated the name of the StatefulSet

func (*StatefulSetWrapper) Obj

Obj returns the inner StatefulSet.

func (*StatefulSetWrapper) PodTemplateAnnotation added in v0.10.0

func (ss *StatefulSetWrapper) PodTemplateAnnotation(k, v string) *StatefulSetWrapper

PodTemplateAnnotation sets the annotation of the pod template

func (*StatefulSetWrapper) PodTemplateSpecAnnotation

func (ss *StatefulSetWrapper) PodTemplateSpecAnnotation(k, v string) *StatefulSetWrapper

PodTemplateSpecAnnotation sets the annotation of the pod template spec of the StatefulSet

func (*StatefulSetWrapper) PodTemplateSpecLabel

func (ss *StatefulSetWrapper) PodTemplateSpecLabel(k, v string) *StatefulSetWrapper

PodTemplateSpecLabel sets the label of the pod template spec of the StatefulSet

func (*StatefulSetWrapper) PodTemplateSpecPodGroupFastAdmissionAnnotation

func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupFastAdmissionAnnotation(enabled bool) *StatefulSetWrapper

func (*StatefulSetWrapper) PodTemplateSpecPodGroupNameLabel

func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupNameLabel(
	ownerName string, ownerUID types.UID, ownerGVK schema.GroupVersionKind,
) *StatefulSetWrapper

func (*StatefulSetWrapper) PodTemplateSpecPodGroupPodIndexLabelAnnotation added in v0.10.0

func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupPodIndexLabelAnnotation(labelName string) *StatefulSetWrapper

func (*StatefulSetWrapper) PodTemplateSpecPodGroupServingAnnotation added in v0.10.0

func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupServingAnnotation(enabled bool) *StatefulSetWrapper

func (*StatefulSetWrapper) PodTemplateSpecPodGroupTotalCountAnnotation

func (ss *StatefulSetWrapper) PodTemplateSpecPodGroupTotalCountAnnotation(replicas int32) *StatefulSetWrapper

func (*StatefulSetWrapper) PodTemplateSpecQueue

func (ss *StatefulSetWrapper) PodTemplateSpecQueue(q string) *StatefulSetWrapper

PodTemplateSpecQueue updates the queue name of the pod template spec of the StatefulSet

func (*StatefulSetWrapper) Queue

Queue updates the queue name of the StatefulSet

func (*StatefulSetWrapper) Replicas

func (ss *StatefulSetWrapper) Replicas(r int32) *StatefulSetWrapper

func (*StatefulSetWrapper) Request

Request adds a resource request to the default container.

Jump to

Keyboard shortcuts

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