Documentation ¶
Index ¶
- type Item
- type PolicyInvalidPodDisruptionBudget
- func (p PolicyInvalidPodDisruptionBudget) GetMatchingItems(namespace string, labelSelector *metav1.LabelSelector) ([]Item, error)
- func (p PolicyInvalidPodDisruptionBudget) Name() string
- func (p PolicyInvalidPodDisruptionBudget) Validate(ctx context.Context, config policies.Config, ar *admissionv1.AdmissionRequest) ([]policies.ResourceViolation, []policies.PatchOperation)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyInvalidPodDisruptionBudget ¶
type PolicyInvalidPodDisruptionBudget struct {
// contains filtered or unexported fields
}
PolicyInvalidPodDisruptionBudget type
func NewPolicyInvalidPodDisruptionBudget ¶
func NewPolicyInvalidPodDisruptionBudget() (PolicyInvalidPodDisruptionBudget, error)
NewPolicyInvalidPodDisruptionBudget new
func (PolicyInvalidPodDisruptionBudget) GetMatchingItems ¶
func (p PolicyInvalidPodDisruptionBudget) GetMatchingItems(namespace string, labelSelector *metav1.LabelSelector) ([]Item, error)
GetMatchingItems find all deployments, replicasets, and statefulsets which match the pdb labelselector
func (PolicyInvalidPodDisruptionBudget) Name ¶
func (p PolicyInvalidPodDisruptionBudget) Name() string
Name name
func (PolicyInvalidPodDisruptionBudget) Validate ¶
func (p PolicyInvalidPodDisruptionBudget) Validate(ctx context.Context, config policies.Config, ar *admissionv1.AdmissionRequest) ([]policies.ResourceViolation, []policies.PatchOperation)
Validate poddisruptionbudget checks
Click to show internal directories.
Click to hide internal directories.