poddisruptionbudget

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculatePDBMinAvailable

func CalculatePDBMinAvailable(etcd *druidv1alpha1.Etcd) int

CalculatePDBMinAvailable calculates the minimum available value for the PDB

func New

func New(c client.Client, namespace string, values *Values) gardenercomponent.Deployer

New creates a new poddisruptionbudget deployer instance.

Types

type Values

type Values struct {
	// Name is the name of the PodDisruptionBudget.
	Name string
	// Labels are the PDB labels.
	Labels map[string]string
	// SelectorLabels are the labels to be used in the PDB spec selector
	SelectorLabels map[string]string
	// Annotations are the annotations to be used in the PDB
	Annotations map[string]string
	// MinAvailable defined the minimum number of pods to be available at any point of time
	MinAvailable int32
	// OwnerReference is the OwnerReference for the PodDisruptionBudget.
	OwnerReference metav1.OwnerReference
}

Values contains the values necessary for creating PodDisruptionBudget.

func GenerateValues

func GenerateValues(etcd *druidv1alpha1.Etcd) Values

GenerateValues generates `poddisruptionbudget.Values` for the lease component with the given parameters.

Jump to

Keyboard shortcuts

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