mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-08 10:47:26 +00:00
Revert "Field status.hostIPs
added for Pod (#101566)"
This reverts commit 61b3c028ba618a939559c39befb546ae5e5fd0b9. Kubernetes-commit: 1108bed7631f545d43530aa697175d243b99610b
This commit is contained in:
parent
092a109b2b
commit
f699049d30
@ -1,39 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright The Kubernetes Authors.
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1
|
|
||||||
|
|
||||||
// HostIPApplyConfiguration represents an declarative configuration of the HostIP type for use
|
|
||||||
// with apply.
|
|
||||||
type HostIPApplyConfiguration struct {
|
|
||||||
IP *string `json:"ip,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// HostIPApplyConfiguration constructs an declarative configuration of the HostIP type for use with
|
|
||||||
// apply.
|
|
||||||
func HostIP() *HostIPApplyConfiguration {
|
|
||||||
return &HostIPApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithIP sets the IP 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 IP field is set to the value of the last call.
|
|
||||||
func (b *HostIPApplyConfiguration) WithIP(value string) *HostIPApplyConfiguration {
|
|
||||||
b.IP = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -32,7 +32,6 @@ type PodStatusApplyConfiguration struct {
|
|||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
NominatedNodeName *string `json:"nominatedNodeName,omitempty"`
|
NominatedNodeName *string `json:"nominatedNodeName,omitempty"`
|
||||||
HostIP *string `json:"hostIP,omitempty"`
|
HostIP *string `json:"hostIP,omitempty"`
|
||||||
HostIPs []HostIPApplyConfiguration `json:"hostIPs,omitempty"`
|
|
||||||
PodIP *string `json:"podIP,omitempty"`
|
PodIP *string `json:"podIP,omitempty"`
|
||||||
PodIPs []PodIPApplyConfiguration `json:"podIPs,omitempty"`
|
PodIPs []PodIPApplyConfiguration `json:"podIPs,omitempty"`
|
||||||
StartTime *metav1.Time `json:"startTime,omitempty"`
|
StartTime *metav1.Time `json:"startTime,omitempty"`
|
||||||
@ -101,19 +100,6 @@ func (b *PodStatusApplyConfiguration) WithHostIP(value string) *PodStatusApplyCo
|
|||||||
return b
|
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
|
// 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.
|
// 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.
|
// If called multiple times, the PodIP field is set to the value of the last call.
|
||||||
|
@ -4629,12 +4629,6 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: ip
|
- name: ip
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
- name: io.k8s.api.core.v1.HostIP
|
|
||||||
map:
|
|
||||||
fields:
|
|
||||||
- name: ip
|
|
||||||
type:
|
|
||||||
scalar: string
|
|
||||||
- name: io.k8s.api.core.v1.HostPathVolumeSource
|
- name: io.k8s.api.core.v1.HostPathVolumeSource
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
@ -5895,12 +5889,6 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: hostIP
|
- name: hostIP
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
- name: hostIPs
|
|
||||||
type:
|
|
||||||
list:
|
|
||||||
elementType:
|
|
||||||
namedType: io.k8s.api.core.v1.HostIP
|
|
||||||
elementRelationship: associative
|
|
||||||
- name: initContainerStatuses
|
- name: initContainerStatuses
|
||||||
type:
|
type:
|
||||||
list:
|
list:
|
||||||
|
@ -613,8 +613,6 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
|||||||
return &applyconfigurationscorev1.GRPCActionApplyConfiguration{}
|
return &applyconfigurationscorev1.GRPCActionApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("HostAlias"):
|
case corev1.SchemeGroupVersion.WithKind("HostAlias"):
|
||||||
return &applyconfigurationscorev1.HostAliasApplyConfiguration{}
|
return &applyconfigurationscorev1.HostAliasApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("HostIP"):
|
|
||||||
return &applyconfigurationscorev1.HostIPApplyConfiguration{}
|
|
||||||
case corev1.SchemeGroupVersion.WithKind("HostPathVolumeSource"):
|
case corev1.SchemeGroupVersion.WithKind("HostPathVolumeSource"):
|
||||||
return &applyconfigurationscorev1.HostPathVolumeSourceApplyConfiguration{}
|
return &applyconfigurationscorev1.HostPathVolumeSourceApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("HTTPGetAction"):
|
case corev1.SchemeGroupVersion.WithKind("HTTPGetAction"):
|
||||||
|
Loading…
Reference in New Issue
Block a user