1 // +build !ignore_autogenerated
4 Copyright The Kubernetes Authors.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
19 // Code generated by deepcopy-gen. DO NOT EDIT.
24 runtime "k8s.io/apimachinery/pkg/runtime"
27 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
28 func (in *AuthInfo) DeepCopyInto(out *AuthInfo) {
30 if in.ClientCertificateData != nil {
31 in, out := &in.ClientCertificateData, &out.ClientCertificateData
32 *out = make([]byte, len(*in))
35 if in.ClientKeyData != nil {
36 in, out := &in.ClientKeyData, &out.ClientKeyData
37 *out = make([]byte, len(*in))
40 if in.ImpersonateGroups != nil {
41 in, out := &in.ImpersonateGroups, &out.ImpersonateGroups
42 *out = make([]string, len(*in))
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 {
53 in, out := &val, &outVal
54 *out = make([]string, len(*in))
60 if in.AuthProvider != nil {
61 in, out := &in.AuthProvider, &out.AuthProvider
62 *out = new(AuthProviderConfig)
63 (*in).DeepCopyInto(*out)
66 in, out := &in.Exec, &out.Exec
67 *out = new(ExecConfig)
68 (*in).DeepCopyInto(*out)
70 if in.Extensions != nil {
71 in, out := &in.Extensions, &out.Extensions
72 *out = make([]NamedExtension, len(*in))
74 (*in)[i].DeepCopyInto(&(*out)[i])
80 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo.
81 func (in *AuthInfo) DeepCopy() *AuthInfo {
90 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
91 func (in *AuthProviderConfig) DeepCopyInto(out *AuthProviderConfig) {
94 in, out := &in.Config, &out.Config
95 *out = make(map[string]string, len(*in))
96 for key, val := range *in {
103 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig.
104 func (in *AuthProviderConfig) DeepCopy() *AuthProviderConfig {
108 out := new(AuthProviderConfig)
113 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
114 func (in *Cluster) DeepCopyInto(out *Cluster) {
116 if in.CertificateAuthorityData != nil {
117 in, out := &in.CertificateAuthorityData, &out.CertificateAuthorityData
118 *out = make([]byte, len(*in))
121 if in.Extensions != nil {
122 in, out := &in.Extensions, &out.Extensions
123 *out = make([]NamedExtension, len(*in))
125 (*in)[i].DeepCopyInto(&(*out)[i])
131 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
132 func (in *Cluster) DeepCopy() *Cluster {
141 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
142 func (in *Config) DeepCopyInto(out *Config) {
144 in.Preferences.DeepCopyInto(&out.Preferences)
145 if in.Clusters != nil {
146 in, out := &in.Clusters, &out.Clusters
147 *out = make([]NamedCluster, len(*in))
149 (*in)[i].DeepCopyInto(&(*out)[i])
152 if in.AuthInfos != nil {
153 in, out := &in.AuthInfos, &out.AuthInfos
154 *out = make([]NamedAuthInfo, len(*in))
156 (*in)[i].DeepCopyInto(&(*out)[i])
159 if in.Contexts != nil {
160 in, out := &in.Contexts, &out.Contexts
161 *out = make([]NamedContext, len(*in))
163 (*in)[i].DeepCopyInto(&(*out)[i])
166 if in.Extensions != nil {
167 in, out := &in.Extensions, &out.Extensions
168 *out = make([]NamedExtension, len(*in))
170 (*in)[i].DeepCopyInto(&(*out)[i])
176 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
177 func (in *Config) DeepCopy() *Config {
186 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
187 func (in *Config) DeepCopyObject() runtime.Object {
188 if c := in.DeepCopy(); c != nil {
194 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
195 func (in *Context) DeepCopyInto(out *Context) {
197 if in.Extensions != nil {
198 in, out := &in.Extensions, &out.Extensions
199 *out = make([]NamedExtension, len(*in))
201 (*in)[i].DeepCopyInto(&(*out)[i])
207 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context.
208 func (in *Context) DeepCopy() *Context {
217 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
218 func (in *ExecConfig) DeepCopyInto(out *ExecConfig) {
221 in, out := &in.Args, &out.Args
222 *out = make([]string, len(*in))
226 in, out := &in.Env, &out.Env
227 *out = make([]ExecEnvVar, len(*in))
233 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecConfig.
234 func (in *ExecConfig) DeepCopy() *ExecConfig {
238 out := new(ExecConfig)
243 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
244 func (in *ExecEnvVar) DeepCopyInto(out *ExecEnvVar) {
249 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecEnvVar.
250 func (in *ExecEnvVar) DeepCopy() *ExecEnvVar {
254 out := new(ExecEnvVar)
259 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
260 func (in *NamedAuthInfo) DeepCopyInto(out *NamedAuthInfo) {
262 in.AuthInfo.DeepCopyInto(&out.AuthInfo)
266 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedAuthInfo.
267 func (in *NamedAuthInfo) DeepCopy() *NamedAuthInfo {
271 out := new(NamedAuthInfo)
276 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
277 func (in *NamedCluster) DeepCopyInto(out *NamedCluster) {
279 in.Cluster.DeepCopyInto(&out.Cluster)
283 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedCluster.
284 func (in *NamedCluster) DeepCopy() *NamedCluster {
288 out := new(NamedCluster)
293 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
294 func (in *NamedContext) DeepCopyInto(out *NamedContext) {
296 in.Context.DeepCopyInto(&out.Context)
300 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedContext.
301 func (in *NamedContext) DeepCopy() *NamedContext {
305 out := new(NamedContext)
310 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
311 func (in *NamedExtension) DeepCopyInto(out *NamedExtension) {
313 in.Extension.DeepCopyInto(&out.Extension)
317 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedExtension.
318 func (in *NamedExtension) DeepCopy() *NamedExtension {
322 out := new(NamedExtension)
327 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
328 func (in *Preferences) DeepCopyInto(out *Preferences) {
330 if in.Extensions != nil {
331 in, out := &in.Extensions, &out.Extensions
332 *out = make([]NamedExtension, len(*in))
334 (*in)[i].DeepCopyInto(&(*out)[i])
340 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preferences.
341 func (in *Preferences) DeepCopy() *Preferences {
345 out := new(Preferences)