1 // +build !ignore_autogenerated
4 Copyright 2016 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 // This file was autogenerated by deepcopy-gen. Do not edit it manually!
24 api "k8s.io/kubernetes/pkg/api"
25 v1 "k8s.io/kubernetes/pkg/api/v1"
26 conversion "k8s.io/kubernetes/pkg/conversion"
30 if err := api.Scheme.AddGeneratedDeepCopyFuncs(
31 DeepCopy_v1alpha1_CertificateSigningRequest,
32 DeepCopy_v1alpha1_CertificateSigningRequestCondition,
33 DeepCopy_v1alpha1_CertificateSigningRequestList,
34 DeepCopy_v1alpha1_CertificateSigningRequestSpec,
35 DeepCopy_v1alpha1_CertificateSigningRequestStatus,
37 // if one of the deep copy functions is malformed, detect it immediately.
42 func DeepCopy_v1alpha1_CertificateSigningRequest(in CertificateSigningRequest, out *CertificateSigningRequest, c *conversion.Cloner) error {
43 out.TypeMeta = in.TypeMeta
44 if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil {
47 if err := DeepCopy_v1alpha1_CertificateSigningRequestSpec(in.Spec, &out.Spec, c); err != nil {
50 if err := DeepCopy_v1alpha1_CertificateSigningRequestStatus(in.Status, &out.Status, c); err != nil {
56 func DeepCopy_v1alpha1_CertificateSigningRequestCondition(in CertificateSigningRequestCondition, out *CertificateSigningRequestCondition, c *conversion.Cloner) error {
58 out.Reason = in.Reason
59 out.Message = in.Message
60 out.LastUpdateTime = in.LastUpdateTime.DeepCopy()
64 func DeepCopy_v1alpha1_CertificateSigningRequestList(in CertificateSigningRequestList, out *CertificateSigningRequestList, c *conversion.Cloner) error {
65 out.TypeMeta = in.TypeMeta
66 out.ListMeta = in.ListMeta
68 in, out := in.Items, &out.Items
69 *out = make([]CertificateSigningRequest, len(in))
71 if err := DeepCopy_v1alpha1_CertificateSigningRequest(in[i], &(*out)[i], c); err != nil {
81 func DeepCopy_v1alpha1_CertificateSigningRequestSpec(in CertificateSigningRequestSpec, out *CertificateSigningRequestSpec, c *conversion.Cloner) error {
82 if in.Request != nil {
83 in, out := in.Request, &out.Request
84 *out = make([]byte, len(in))
89 out.Username = in.Username
92 in, out := in.Groups, &out.Groups
93 *out = make([]string, len(in))
101 func DeepCopy_v1alpha1_CertificateSigningRequestStatus(in CertificateSigningRequestStatus, out *CertificateSigningRequestStatus, c *conversion.Cloner) error {
102 if in.Conditions != nil {
103 in, out := in.Conditions, &out.Conditions
104 *out = make([]CertificateSigningRequestCondition, len(in))
106 if err := DeepCopy_v1alpha1_CertificateSigningRequestCondition(in[i], &(*out)[i], c); err != nil {
113 if in.Certificate != nil {
114 in, out := in.Certificate, &out.Certificate
115 *out = make([]byte, len(in))
118 out.Certificate = nil