mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-26 15:12:06 +00:00
ServiceExternalTrafficPolicyType: s/Type//
Rename ServiceExternalTrafficPolicyType => ServiceExternalTrafficPolicy Kubernetes-commit: d0e2b068500b260851f48c636185e1dcbb438d2e
This commit is contained in:
parent
5a489e8d10
commit
f5f28c4de4
@ -35,7 +35,7 @@ type ServiceSpecApplyConfiguration struct {
|
|||||||
LoadBalancerIP *string `json:"loadBalancerIP,omitempty"`
|
LoadBalancerIP *string `json:"loadBalancerIP,omitempty"`
|
||||||
LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"`
|
LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"`
|
||||||
ExternalName *string `json:"externalName,omitempty"`
|
ExternalName *string `json:"externalName,omitempty"`
|
||||||
ExternalTrafficPolicy *corev1.ServiceExternalTrafficPolicyType `json:"externalTrafficPolicy,omitempty"`
|
ExternalTrafficPolicy *corev1.ServiceExternalTrafficPolicy `json:"externalTrafficPolicy,omitempty"`
|
||||||
HealthCheckNodePort *int32 `json:"healthCheckNodePort,omitempty"`
|
HealthCheckNodePort *int32 `json:"healthCheckNodePort,omitempty"`
|
||||||
PublishNotReadyAddresses *bool `json:"publishNotReadyAddresses,omitempty"`
|
PublishNotReadyAddresses *bool `json:"publishNotReadyAddresses,omitempty"`
|
||||||
SessionAffinityConfig *SessionAffinityConfigApplyConfiguration `json:"sessionAffinityConfig,omitempty"`
|
SessionAffinityConfig *SessionAffinityConfigApplyConfiguration `json:"sessionAffinityConfig,omitempty"`
|
||||||
@ -152,7 +152,7 @@ func (b *ServiceSpecApplyConfiguration) WithExternalName(value string) *ServiceS
|
|||||||
// WithExternalTrafficPolicy sets the ExternalTrafficPolicy field in the declarative configuration to the given value
|
// WithExternalTrafficPolicy sets the ExternalTrafficPolicy 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 ExternalTrafficPolicy field is set to the value of the last call.
|
// If called multiple times, the ExternalTrafficPolicy field is set to the value of the last call.
|
||||||
func (b *ServiceSpecApplyConfiguration) WithExternalTrafficPolicy(value corev1.ServiceExternalTrafficPolicyType) *ServiceSpecApplyConfiguration {
|
func (b *ServiceSpecApplyConfiguration) WithExternalTrafficPolicy(value corev1.ServiceExternalTrafficPolicy) *ServiceSpecApplyConfiguration {
|
||||||
b.ExternalTrafficPolicy = &value
|
b.ExternalTrafficPolicy = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user