mirror of
https://github.com/kubernetes/client-go.git
synced 2025-10-21 22:09:33 +00:00
Field status.hostIPs
added for Pod (#101566)
* Add FeatureGate PodHostIPs * Add HostIPs field and update PodIPs field * Types conversion * Add dropDisabledStatusFields * Add HostIPs for kubelet * Add fuzzer for PodStatus * Add status.hostIPs in ConvertDownwardAPIFieldLabel * Add status.hostIPs in validEnvDownwardAPIFieldPathExpressions * Downward API support for status.hostIPs * Add DownwardAPI validation for status.hostIPs * Add e2e to check that hostIPs works * Add e2e to check that Downward API works * Regenerate Kubernetes-commit: 61b3c028ba618a939559c39befb546ae5e5fd0b9
This commit is contained in:
committed by
Kubernetes Publisher
parent
94a1081faf
commit
0c14d0c485
@@ -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"`
|
||||
@@ -100,6 +101,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