2017-11-05 21:21:00 +00:00
|
|
|
// +build !ignore_autogenerated
|
|
|
|
|
|
|
|
/*
|
2021-01-02 16:22:50 +00:00
|
|
|
Copyright 2021 The Kubernetes Authors.
|
2017-11-05 21:21:00 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2019-05-14 02:55:22 +00:00
|
|
|
// Code generated by deepcopy-gen. DO NOT EDIT.
|
2017-11-05 21:21:00 +00:00
|
|
|
|
|
|
|
package ingress
|
|
|
|
|
|
|
|
import (
|
|
|
|
v1 "k8s.io/api/core/v1"
|
|
|
|
)
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *Backend) DeepCopyInto(out *Backend) {
|
|
|
|
*out = *in
|
|
|
|
if in.Service != nil {
|
|
|
|
in, out := &in.Service, &out.Service
|
2019-05-14 02:55:22 +00:00
|
|
|
*out = new(v1.Service)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2017-11-05 21:21:00 +00:00
|
|
|
}
|
|
|
|
out.Port = in.Port
|
|
|
|
if in.Endpoints != nil {
|
|
|
|
in, out := &in.Endpoints, &out.Endpoints
|
|
|
|
*out = make([]Endpoint, len(*in))
|
|
|
|
for i := range *in {
|
|
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
in.SessionAffinity.DeepCopyInto(&out.SessionAffinity)
|
2019-05-14 02:55:22 +00:00
|
|
|
out.UpstreamHashBy = in.UpstreamHashBy
|
|
|
|
out.TrafficShapingPolicy = in.TrafficShapingPolicy
|
|
|
|
if in.AlternativeBackends != nil {
|
|
|
|
in, out := &in.AlternativeBackends, &out.AlternativeBackends
|
|
|
|
*out = make([]string, len(*in))
|
|
|
|
copy(*out, *in)
|
|
|
|
}
|
2017-11-05 21:21:00 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend.
|
|
|
|
func (in *Backend) DeepCopy() *Backend {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(Backend)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *CookieSessionAffinity) DeepCopyInto(out *CookieSessionAffinity) {
|
|
|
|
*out = *in
|
|
|
|
if in.Locations != nil {
|
|
|
|
in, out := &in.Locations, &out.Locations
|
|
|
|
*out = make(map[string][]string, len(*in))
|
|
|
|
for key, val := range *in {
|
2019-05-14 02:55:22 +00:00
|
|
|
var outVal []string
|
2017-11-05 21:21:00 +00:00
|
|
|
if val == nil {
|
|
|
|
(*out)[key] = nil
|
|
|
|
} else {
|
2019-05-14 02:55:22 +00:00
|
|
|
in, out := &val, &outVal
|
|
|
|
*out = make([]string, len(*in))
|
|
|
|
copy(*out, *in)
|
2017-11-05 21:21:00 +00:00
|
|
|
}
|
2019-05-14 02:55:22 +00:00
|
|
|
(*out)[key] = outVal
|
2017-11-05 21:21:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CookieSessionAffinity.
|
|
|
|
func (in *CookieSessionAffinity) DeepCopy() *CookieSessionAffinity {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(CookieSessionAffinity)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *Endpoint) DeepCopyInto(out *Endpoint) {
|
|
|
|
*out = *in
|
|
|
|
if in.Target != nil {
|
|
|
|
in, out := &in.Target, &out.Target
|
2019-05-14 02:55:22 +00:00
|
|
|
*out = new(v1.ObjectReference)
|
|
|
|
**out = **in
|
2017-11-05 21:21:00 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
|
|
|
|
func (in *Endpoint) DeepCopy() *Endpoint {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(Endpoint)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *SessionAffinityConfig) DeepCopyInto(out *SessionAffinityConfig) {
|
|
|
|
*out = *in
|
|
|
|
in.CookieSessionAffinity.DeepCopyInto(&out.CookieSessionAffinity)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SessionAffinityConfig.
|
|
|
|
func (in *SessionAffinityConfig) DeepCopy() *SessionAffinityConfig {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(SessionAffinityConfig)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
2019-05-14 02:55:22 +00:00
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *TrafficShapingPolicy) DeepCopyInto(out *TrafficShapingPolicy) {
|
|
|
|
*out = *in
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficShapingPolicy.
|
|
|
|
func (in *TrafficShapingPolicy) DeepCopy() *TrafficShapingPolicy {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(TrafficShapingPolicy)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|