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
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.
Click to show internal directories.
Click to hide internal directories.