kubernetes

package
v0.0.0-...-5c9ae66 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodRestarter

type PodRestarter struct {
	Namespace  string
	LabelKey   string
	LabelValue string
	ClientSet  *kubernetes.Clientset
}

PodRestarter allows to restart by deleting pods matching a certain label

func (PodRestarter) Restart

func (r PodRestarter) Restart(ctx context.Context) error

Restart the app by deleting its pod

type StatefulSetRestarter

type StatefulSetRestarter struct {
	Namespace    string
	Name         string
	ClientSet    *kubernetes.Clientset
	FieldManager string
}

StatefulSetRestarter allows to restart by patching a statefulset

func (StatefulSetRestarter) Restart

func (r StatefulSetRestarter) Restart(ctx context.Context) error

Restart patches the statefulset to cause a restart

type StatefulSetScaler

type StatefulSetScaler struct {
	Namespace    string
	Name         string
	ClientSet    *kubernetes.Clientset
	FieldManager string
}

StatefulSetScaler allows to scale down a statefulset

func (StatefulSetScaler) ScaleDown

func (r StatefulSetScaler) ScaleDown(ctx context.Context) error

ScaleDown the statefulset

func (StatefulSetScaler) ScaleUp

func (r StatefulSetScaler) ScaleUp(ctx context.Context) error

ScaleUp the statefulset

Jump to

Keyboard shortcuts

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