etcd

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

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.

Jump to

Keyboard shortcuts

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