mirror of
https://github.com/kubernetes/client-go.git
synced 2025-10-21 22:09:33 +00:00
Regenerate
Kubernetes-commit: 3e2a1a7b9ce860dbe39a03014707c9bcdd333960
This commit is contained in:
committed by
Kubernetes Publisher
parent
f19b40cda9
commit
8c4503becd
@@ -32,6 +32,7 @@ type PodStatusApplyConfiguration struct {
|
||||
Reason *string `json:"reason,omitempty"`
|
||||
NominatedNodeName *string `json:"nominatedNodeName,omitempty"`
|
||||
HostIP *string `json:"hostIP,omitempty"`
|
||||
HostIPs []HostIPApplyConfiguration `json:"hostIPs,omitempty"`
|
||||
PodIP *string `json:"podIP,omitempty"`
|
||||
PodIPs []PodIPApplyConfiguration `json:"podIPs,omitempty"`
|
||||
StartTime *metav1.Time `json:"startTime,omitempty"`
|
||||
@@ -102,6 +103,19 @@ func (b *PodStatusApplyConfiguration) WithHostIP(value string) *PodStatusApplyCo
|
||||
return b
|
||||
}
|
||||
|
||||
// WithHostIPs adds the given value to the HostIPs 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 HostIPs field.
|
||||
func (b *PodStatusApplyConfiguration) WithHostIPs(values ...*HostIPApplyConfiguration) *PodStatusApplyConfiguration {
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithHostIPs")
|
||||
}
|
||||
b.HostIPs = append(b.HostIPs, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithPodIP sets the PodIP field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the PodIP field is set to the value of the last call.
|
||||
|
Reference in New Issue
Block a user