1// +build !ignore_autogenerated 2 3/* 4Copyright The Kubernetes Authors. 5 6Licensed under the Apache License, Version 2.0 (the "License"); 7you may not use this file except in compliance with the License. 8You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12Unless required by applicable law or agreed to in writing, software 13distributed under the License is distributed on an "AS IS" BASIS, 14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15See the License for the specific language governing permissions and 16limitations under the License. 17*/ 18 19// Code generated by deepcopy-gen. DO NOT EDIT. 20 21package v1 22 23import ( 24 runtime "k8s.io/apimachinery/pkg/runtime" 25) 26 27// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 28func (in *AuthInfo) DeepCopyInto(out *AuthInfo) { 29 *out = *in 30 if in.ClientCertificateData != nil { 31 in, out := &in.ClientCertificateData, &out.ClientCertificateData 32 *out = make([]byte, len(*in)) 33 copy(*out, *in) 34 } 35 if in.ClientKeyData != nil { 36 in, out := &in.ClientKeyData, &out.ClientKeyData 37 *out = make([]byte, len(*in)) 38 copy(*out, *in) 39 } 40 if in.ImpersonateGroups != nil { 41 in, out := &in.ImpersonateGroups, &out.ImpersonateGroups 42 *out = make([]string, len(*in)) 43 copy(*out, *in) 44 } 45 if in.ImpersonateUserExtra != nil { 46 in, out := &in.ImpersonateUserExtra, &out.ImpersonateUserExtra 47 *out = make(map[string][]string, len(*in)) 48 for key, val := range *in { 49 var outVal []string 50 if val == nil { 51 (*out)[key] = nil 52 } else { 53 in, out := &val, &outVal 54 *out = make([]string, len(*in)) 55 copy(*out, *in) 56 } 57 (*out)[key] = outVal 58 } 59 } 60 if in.AuthProvider != nil { 61 in, out := &in.AuthProvider, &out.AuthProvider 62 *out = new(AuthProviderConfig) 63 (*in).DeepCopyInto(*out) 64 } 65 if in.Exec != nil { 66 in, out := &in.Exec, &out.Exec 67 *out = new(ExecConfig) 68 (*in).DeepCopyInto(*out) 69 } 70 if in.Extensions != nil { 71 in, out := &in.Extensions, &out.Extensions 72 *out = make([]NamedExtension, len(*in)) 73 for i := range *in { 74 (*in)[i].DeepCopyInto(&(*out)[i]) 75 } 76 } 77 return 78} 79 80// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo. 81func (in *AuthInfo) DeepCopy() *AuthInfo { 82 if in == nil { 83 return nil 84 } 85 out := new(AuthInfo) 86 in.DeepCopyInto(out) 87 return out 88} 89 90// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 91func (in *AuthProviderConfig) DeepCopyInto(out *AuthProviderConfig) { 92 *out = *in 93 if in.Config != nil { 94 in, out := &in.Config, &out.Config 95 *out = make(map[string]string, len(*in)) 96 for key, val := range *in { 97 (*out)[key] = val 98 } 99 } 100 return 101} 102 103// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig. 104func (in *AuthProviderConfig) DeepCopy() *AuthProviderConfig { 105 if in == nil { 106 return nil 107 } 108 out := new(AuthProviderConfig) 109 in.DeepCopyInto(out) 110 return out 111} 112 113// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 114func (in *Cluster) DeepCopyInto(out *Cluster) { 115 *out = *in 116 if in.CertificateAuthorityData != nil { 117 in, out := &in.CertificateAuthorityData, &out.CertificateAuthorityData 118 *out = make([]byte, len(*in)) 119 copy(*out, *in) 120 } 121 if in.Extensions != nil { 122 in, out := &in.Extensions, &out.Extensions 123 *out = make([]NamedExtension, len(*in)) 124 for i := range *in { 125 (*in)[i].DeepCopyInto(&(*out)[i]) 126 } 127 } 128 return 129} 130 131// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. 132func (in *Cluster) DeepCopy() *Cluster { 133 if in == nil { 134 return nil 135 } 136 out := new(Cluster) 137 in.DeepCopyInto(out) 138 return out 139} 140 141// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 142func (in *Config) DeepCopyInto(out *Config) { 143 *out = *in 144 in.Preferences.DeepCopyInto(&out.Preferences) 145 if in.Clusters != nil { 146 in, out := &in.Clusters, &out.Clusters 147 *out = make([]NamedCluster, len(*in)) 148 for i := range *in { 149 (*in)[i].DeepCopyInto(&(*out)[i]) 150 } 151 } 152 if in.AuthInfos != nil { 153 in, out := &in.AuthInfos, &out.AuthInfos 154 *out = make([]NamedAuthInfo, len(*in)) 155 for i := range *in { 156 (*in)[i].DeepCopyInto(&(*out)[i]) 157 } 158 } 159 if in.Contexts != nil { 160 in, out := &in.Contexts, &out.Contexts 161 *out = make([]NamedContext, len(*in)) 162 for i := range *in { 163 (*in)[i].DeepCopyInto(&(*out)[i]) 164 } 165 } 166 if in.Extensions != nil { 167 in, out := &in.Extensions, &out.Extensions 168 *out = make([]NamedExtension, len(*in)) 169 for i := range *in { 170 (*in)[i].DeepCopyInto(&(*out)[i]) 171 } 172 } 173 return 174} 175 176// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config. 177func (in *Config) DeepCopy() *Config { 178 if in == nil { 179 return nil 180 } 181 out := new(Config) 182 in.DeepCopyInto(out) 183 return out 184} 185 186// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 187func (in *Config) DeepCopyObject() runtime.Object { 188 if c := in.DeepCopy(); c != nil { 189 return c 190 } 191 return nil 192} 193 194// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 195func (in *Context) DeepCopyInto(out *Context) { 196 *out = *in 197 if in.Extensions != nil { 198 in, out := &in.Extensions, &out.Extensions 199 *out = make([]NamedExtension, len(*in)) 200 for i := range *in { 201 (*in)[i].DeepCopyInto(&(*out)[i]) 202 } 203 } 204 return 205} 206 207// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context. 208func (in *Context) DeepCopy() *Context { 209 if in == nil { 210 return nil 211 } 212 out := new(Context) 213 in.DeepCopyInto(out) 214 return out 215} 216 217// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 218func (in *ExecConfig) DeepCopyInto(out *ExecConfig) { 219 *out = *in 220 if in.Args != nil { 221 in, out := &in.Args, &out.Args 222 *out = make([]string, len(*in)) 223 copy(*out, *in) 224 } 225 if in.Env != nil { 226 in, out := &in.Env, &out.Env 227 *out = make([]ExecEnvVar, len(*in)) 228 copy(*out, *in) 229 } 230 return 231} 232 233// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecConfig. 234func (in *ExecConfig) DeepCopy() *ExecConfig { 235 if in == nil { 236 return nil 237 } 238 out := new(ExecConfig) 239 in.DeepCopyInto(out) 240 return out 241} 242 243// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 244func (in *ExecEnvVar) DeepCopyInto(out *ExecEnvVar) { 245 *out = *in 246 return 247} 248 249// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecEnvVar. 250func (in *ExecEnvVar) DeepCopy() *ExecEnvVar { 251 if in == nil { 252 return nil 253 } 254 out := new(ExecEnvVar) 255 in.DeepCopyInto(out) 256 return out 257} 258 259// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 260func (in *NamedAuthInfo) DeepCopyInto(out *NamedAuthInfo) { 261 *out = *in 262 in.AuthInfo.DeepCopyInto(&out.AuthInfo) 263 return 264} 265 266// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedAuthInfo. 267func (in *NamedAuthInfo) DeepCopy() *NamedAuthInfo { 268 if in == nil { 269 return nil 270 } 271 out := new(NamedAuthInfo) 272 in.DeepCopyInto(out) 273 return out 274} 275 276// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 277func (in *NamedCluster) DeepCopyInto(out *NamedCluster) { 278 *out = *in 279 in.Cluster.DeepCopyInto(&out.Cluster) 280 return 281} 282 283// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedCluster. 284func (in *NamedCluster) DeepCopy() *NamedCluster { 285 if in == nil { 286 return nil 287 } 288 out := new(NamedCluster) 289 in.DeepCopyInto(out) 290 return out 291} 292 293// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 294func (in *NamedContext) DeepCopyInto(out *NamedContext) { 295 *out = *in 296 in.Context.DeepCopyInto(&out.Context) 297 return 298} 299 300// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedContext. 301func (in *NamedContext) DeepCopy() *NamedContext { 302 if in == nil { 303 return nil 304 } 305 out := new(NamedContext) 306 in.DeepCopyInto(out) 307 return out 308} 309 310// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 311func (in *NamedExtension) DeepCopyInto(out *NamedExtension) { 312 *out = *in 313 in.Extension.DeepCopyInto(&out.Extension) 314 return 315} 316 317// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedExtension. 318func (in *NamedExtension) DeepCopy() *NamedExtension { 319 if in == nil { 320 return nil 321 } 322 out := new(NamedExtension) 323 in.DeepCopyInto(out) 324 return out 325} 326 327// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 328func (in *Preferences) DeepCopyInto(out *Preferences) { 329 *out = *in 330 if in.Extensions != nil { 331 in, out := &in.Extensions, &out.Extensions 332 *out = make([]NamedExtension, len(*in)) 333 for i := range *in { 334 (*in)[i].DeepCopyInto(&(*out)[i]) 335 } 336 } 337 return 338} 339 340// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preferences. 341func (in *Preferences) DeepCopy() *Preferences { 342 if in == nil { 343 return nil 344 } 345 out := new(Preferences) 346 in.DeepCopyInto(out) 347 return out 348} 349