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 { // EtcdName is the name of the etcd resource. EtcdName string // EtcdNameSpace is the namespace of etcd resource EtcdNameSpace string // EtcdUID is the UID of the etcd resource. EtcdUID types.UID // 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 }
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.