mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-26 23:17:34 +00:00
generated
Kubernetes-commit: b08eb95168a482c315b5c1c9e869ca41325f32c1
This commit is contained in:
parent
503eb33ae5
commit
da66d1b7ed
@ -20,17 +20,19 @@ package v1beta1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// PodDisruptionBudgetStatusApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetStatus type for use
|
||||
// with apply.
|
||||
type PodDisruptionBudgetStatusApplyConfiguration struct {
|
||||
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
||||
DisruptedPods map[string]v1.Time `json:"disruptedPods,omitempty"`
|
||||
DisruptionsAllowed *int32 `json:"disruptionsAllowed,omitempty"`
|
||||
CurrentHealthy *int32 `json:"currentHealthy,omitempty"`
|
||||
DesiredHealthy *int32 `json:"desiredHealthy,omitempty"`
|
||||
ExpectedPods *int32 `json:"expectedPods,omitempty"`
|
||||
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
||||
DisruptedPods map[string]v1.Time `json:"disruptedPods,omitempty"`
|
||||
DisruptionsAllowed *int32 `json:"disruptionsAllowed,omitempty"`
|
||||
CurrentHealthy *int32 `json:"currentHealthy,omitempty"`
|
||||
DesiredHealthy *int32 `json:"desiredHealthy,omitempty"`
|
||||
ExpectedPods *int32 `json:"expectedPods,omitempty"`
|
||||
Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||
}
|
||||
|
||||
// PodDisruptionBudgetStatusApplyConfiguration constructs an declarative configuration of the PodDisruptionBudgetStatus type for use with
|
||||
@ -92,3 +94,16 @@ func (b *PodDisruptionBudgetStatusApplyConfiguration) WithExpectedPods(value int
|
||||
b.ExpectedPods = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithConditions adds the given value to the Conditions field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the Conditions field.
|
||||
func (b *PodDisruptionBudgetStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *PodDisruptionBudgetStatusApplyConfiguration {
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithConditions")
|
||||
}
|
||||
b.Conditions = append(b.Conditions, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user