mirror of
https://github.com/kubernetes/client-go.git
synced 2025-10-22 14:32:43 +00:00
* 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
40 lines
1.4 KiB
Go
40 lines
1.4 KiB
Go
/*
|
|
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
|
|
}
|