Documentation ¶ Index ¶ type Limits func NewLimits(ctx context.Context, clk clock.Clock, kubeClient client.Client) (Limits, error) func (l Limits) CanEvictPods(pods []*v1.Pod) (client.ObjectKey, bool) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Limits ¶ type Limits []*pdbItem Limits is used to evaluate if evicting a list of pods is possible. func NewLimits ¶ func NewLimits(ctx context.Context, clk clock.Clock, kubeClient client.Client) (Limits, error) func (Limits) CanEvictPods ¶ func (l Limits) CanEvictPods(pods []*v1.Pod) (client.ObjectKey, bool) CanEvictPods returns true if every pod in the list is evictable. They may not all be evictable simultaneously, but for every PDB that controls the pods at least one pod can be evicted. nolint:gocyclo Source Files ¶ View all Source files pdb.go Click to show internal directories. Click to hide internal directories.