Documentation ¶
Overview ¶
Package etcd is used for checking whether etcd disruption is allowd
Important: add the following two lines in your project/code, so your RBAC will be updated with the right permissions +kubebuilder:rbac:groups=policy,resources=poddisruptionbudgets,verbs=get;list;watch +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEtcdDisruptionAllowed ¶
func IsEtcdDisruptionAllowed(ctx context.Context, cl client.Client, log logr.Logger, node *corev1.Node) (bool, error)
IsEtcdDisruptionAllowed checks if etcd disruption is allowed fot a given node It looks at the PodDisruptionBudget (PDB) of etcd quorum, and (if needed) search for the node's guard pod
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.