mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 07:28:14 +00:00
generated
Kubernetes-commit: b08eb95168a482c315b5c1c9e869ca41325f32c1
This commit is contained in:
parent
503eb33ae5
commit
da66d1b7ed
@ -20,6 +20,7 @@ package v1beta1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
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
|
// PodDisruptionBudgetStatusApplyConfiguration represents an declarative configuration of the PodDisruptionBudgetStatus type for use
|
||||||
@ -31,6 +32,7 @@ type PodDisruptionBudgetStatusApplyConfiguration struct {
|
|||||||
CurrentHealthy *int32 `json:"currentHealthy,omitempty"`
|
CurrentHealthy *int32 `json:"currentHealthy,omitempty"`
|
||||||
DesiredHealthy *int32 `json:"desiredHealthy,omitempty"`
|
DesiredHealthy *int32 `json:"desiredHealthy,omitempty"`
|
||||||
ExpectedPods *int32 `json:"expectedPods,omitempty"`
|
ExpectedPods *int32 `json:"expectedPods,omitempty"`
|
||||||
|
Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodDisruptionBudgetStatusApplyConfiguration constructs an declarative configuration of the PodDisruptionBudgetStatus type for use with
|
// 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
|
b.ExpectedPods = &value
|
||||||
return b
|
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