component-helpersk8s.io/component-helpers/apps/poddisruptionbudget Index | Files

package poddisruptionbudget

import "k8s.io/component-helpers/apps/poddisruptionbudget"

Index

Functions

func ConditionsAreUpToDate

func ConditionsAreUpToDate(pdb *policy.PodDisruptionBudget) bool

ConditionsAreUpToDate checks whether the status and reason for the DisruptionAllowed condition are set to the correct values based on the DisruptionsAllowed field.

func UpdateDisruptionAllowedCondition

func UpdateDisruptionAllowedCondition(pdb *policy.PodDisruptionBudget)

UpdateDisruptionAllowedCondition updates the DisruptionAllowed condition on a PodDisruptionBudget based on the value of the DisruptionsAllowed field.

Source Files

helpers.go

Version
v0.23.6
Published
Apr 20, 2022
Platform
linux/amd64
Imports
3 packages
Last checked
6 hours ago

Tools for package owners.