statefulset

package
v1.4.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Optional fields, provided in constructor as list of options
	SetLabels = builder.SetLabels[*appsv1.StatefulSet]
)

Functions

func Build

func Build(owner metav1.Object, name string, container corev1.Container, options ...builder.Option[*appsv1.StatefulSet]) (*appsv1.StatefulSet, error)

func Query

func Query(kubeClient client.Client, kubeReader client.Reader, log logd.Logger) query.Generic[*appsv1.StatefulSet, *appsv1.StatefulSetList]

func SetAffinity added in v1.4.0

func SetAffinity(afinity corev1.Affinity) builder.Option[*appsv1.StatefulSet]

func SetAllAnnotations added in v1.4.0

func SetAllAnnotations(annotations, templateAnnotations map[string]string) builder.Option[*appsv1.StatefulSet]

func SetAllLabels added in v1.4.0

func SetAllLabels(labels, matchLabels, templateLabels, customLabels map[string]string) builder.Option[*appsv1.StatefulSet]

func SetContainer

func SetContainer(container corev1.Container) builder.Option[*appsv1.StatefulSet]

func SetPodManagementPolicy added in v1.4.0

func SetPodManagementPolicy(podManagementType appsv1.PodManagementPolicyType) builder.Option[*appsv1.StatefulSet]

func SetReplicas added in v1.4.0

func SetReplicas(replicas int32) builder.Option[*appsv1.StatefulSet]

func SetSecurityContext added in v1.4.0

func SetSecurityContext(securityContext *corev1.PodSecurityContext) builder.Option[*appsv1.StatefulSet]

func SetServiceAccount added in v1.4.0

func SetServiceAccount(serviceAccountName string) builder.Option[*appsv1.StatefulSet]

func SetTolerations added in v1.4.0

func SetTolerations(tolerations []corev1.Toleration) builder.Option[*appsv1.StatefulSet]

func SetTopologySpreadConstraints added in v1.4.0

func SetTopologySpreadConstraints(topologySpreadConstraints []corev1.TopologySpreadConstraint) builder.Option[*appsv1.StatefulSet]

func SetUpdateStrategy added in v1.4.0

func SetUpdateStrategy(updateStartegy appsv1.StatefulSetUpdateStrategy) builder.Option[*appsv1.StatefulSet]

Types

This section is empty.

Jump to

Keyboard shortcuts

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