policy: update generated files

Regenerated protobuf, OpenAPI (v2 swagger + v3), swagger docs, client-go
applyconfigurations, and the golangci-lint config after enabling the
commentstart rule for the policy API group.

Kubernetes-commit: bf648a7afbb5a7efc72cc6fe907607665845370a
This commit is contained in:
krishhna_dev
2026-06-17 12:45:06 +00:00
committed by Kubernetes Publisher
parent d88c848254
commit a70cef2393
6 changed files with 18 additions and 18 deletions

View File

@@ -35,9 +35,9 @@ import (
// created by POSTing to .../pods/<pod name>/evictions.
type EvictionApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:""`
// ObjectMeta describes the pod that is being evicted.
// metadata describes the pod that is being evicted.
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// DeleteOptions may be provided
// deleteOptions may be provided
DeleteOptions *metav1.DeleteOptionsApplyConfiguration `json:"deleteOptions,omitempty"`
}

View File

@@ -33,12 +33,12 @@ import (
// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
type PodDisruptionBudgetApplyConfiguration struct {
metav1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata.
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// Specification of the desired behavior of the PodDisruptionBudget.
// spec is the specification of the desired behavior of the PodDisruptionBudget.
Spec *PodDisruptionBudgetSpecApplyConfiguration `json:"spec,omitempty"`
// Most recently observed status of the PodDisruptionBudget.
// status is the most recently observed status of the PodDisruptionBudget.
Status *PodDisruptionBudgetStatusApplyConfiguration `json:"status,omitempty"`
}

View File

@@ -29,22 +29,22 @@ import (
//
// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
type PodDisruptionBudgetSpecApplyConfiguration struct {
// An eviction is allowed if at least "minAvailable" pods selected by
// minAvailable indicates that an eviction is allowed if at least "minAvailable" pods selected by
// "selector" will still be available after the eviction, i.e. even in the
// absence of the evicted pod. So for example you can prevent all voluntary
// evictions by specifying "100%".
MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty"`
// Label query over pods whose evictions are managed by the disruption
// selector is a label query over pods whose evictions are managed by the disruption
// budget.
// A null selector will match no pods, while an empty ({}) selector will select
// all pods within the namespace.
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
// An eviction is allowed if at most "maxUnavailable" pods selected by
// maxUnavailable indicates that an eviction is allowed if at most "maxUnavailable" pods selected by
// "selector" are unavailable after the eviction, i.e. even in absence of
// the evicted pod. For example, one can prevent all voluntary evictions
// by specifying 0. This is a mutually exclusive setting with "minAvailable".
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
// UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods
// unhealthyPodEvictionPolicy defines the criteria for when unhealthy pods
// should be considered for eviction. Current implementation considers healthy pods,
// as pods that have status.conditions item with type="Ready",status="True".
//

View File

@@ -35,9 +35,9 @@ import (
// created by POSTing to .../pods/<pod name>/evictions.
type EvictionApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// ObjectMeta describes the pod that is being evicted.
// metadata describes the pod that is being evicted.
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// DeleteOptions may be provided
// deleteOptions may be provided
DeleteOptions *v1.DeleteOptionsApplyConfiguration `json:"deleteOptions,omitempty"`
}

View File

@@ -33,12 +33,12 @@ import (
// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
type PodDisruptionBudgetApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:""`
// Standard object's metadata.
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// Specification of the desired behavior of the PodDisruptionBudget.
// spec is the specification of the desired behavior of the PodDisruptionBudget.
Spec *PodDisruptionBudgetSpecApplyConfiguration `json:"spec,omitempty"`
// Most recently observed status of the PodDisruptionBudget.
// status is the most recently observed status of the PodDisruptionBudget.
Status *PodDisruptionBudgetStatusApplyConfiguration `json:"status,omitempty"`
}

View File

@@ -29,23 +29,23 @@ import (
//
// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
type PodDisruptionBudgetSpecApplyConfiguration struct {
// An eviction is allowed if at least "minAvailable" pods selected by
// minAvailable indicates that an eviction is allowed if at least "minAvailable" pods selected by
// "selector" will still be available after the eviction, i.e. even in the
// absence of the evicted pod. So for example you can prevent all voluntary
// evictions by specifying "100%".
MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty"`
// Label query over pods whose evictions are managed by the disruption
// selector is a label query over pods whose evictions are managed by the disruption
// budget.
// A null selector selects no pods.
// An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
// In policy/v1, an empty selector will select all pods in the namespace.
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
// An eviction is allowed if at most "maxUnavailable" pods selected by
// maxUnavailable indicates that an eviction is allowed if at most "maxUnavailable" pods selected by
// "selector" are unavailable after the eviction, i.e. even in absence of
// the evicted pod. For example, one can prevent all voluntary evictions
// by specifying 0. This is a mutually exclusive setting with "minAvailable".
MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
// UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods
// unhealthyPodEvictionPolicy defines the criteria for when unhealthy pods
// should be considered for eviction. Current implementation considers healthy pods,
// as pods that have status.conditions item with type="Ready",status="True".
//