statefulset

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsReady

func IsReady(client client.Client, namespace, name string, replicas int32) bool

IsReady checks if a statefulset is ready by comparing the desired replicas to the ready replicas

func New

func New(namespace, name string, labels map[string]string, spec v1.StatefulSetSpec) *v1.StatefulSet

New creates a new statefulset

func NewSpec

func NewSpec(replicas int32, service string, selectorMatchLabel map[string]string,
	pvcs []v12.PersistentVolumeClaim, podTemplateSpec v12.PodTemplateSpec) v1.StatefulSetSpec

Types

This section is empty.

Jump to

Keyboard shortcuts

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