...
1
2
3
4
19
20
21
22 package v1
23
24 import (
25 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26 runtime "k8s.io/apimachinery/pkg/runtime"
27 )
28
29
30 func (in *AdmissionRequest) DeepCopyInto(out *AdmissionRequest) {
31 *out = *in
32 out.Kind = in.Kind
33 out.Resource = in.Resource
34 if in.RequestKind != nil {
35 in, out := &in.RequestKind, &out.RequestKind
36 *out = new(metav1.GroupVersionKind)
37 **out = **in
38 }
39 if in.RequestResource != nil {
40 in, out := &in.RequestResource, &out.RequestResource
41 *out = new(metav1.GroupVersionResource)
42 **out = **in
43 }
44 in.UserInfo.DeepCopyInto(&out.UserInfo)
45 in.Object.DeepCopyInto(&out.Object)
46 in.OldObject.DeepCopyInto(&out.OldObject)
47 if in.DryRun != nil {
48 in, out := &in.DryRun, &out.DryRun
49 *out = new(bool)
50 **out = **in
51 }
52 in.Options.DeepCopyInto(&out.Options)
53 return
54 }
55
56
57 func (in *AdmissionRequest) DeepCopy() *AdmissionRequest {
58 if in == nil {
59 return nil
60 }
61 out := new(AdmissionRequest)
62 in.DeepCopyInto(out)
63 return out
64 }
65
66
67 func (in *AdmissionResponse) DeepCopyInto(out *AdmissionResponse) {
68 *out = *in
69 if in.Result != nil {
70 in, out := &in.Result, &out.Result
71 *out = new(metav1.Status)
72 (*in).DeepCopyInto(*out)
73 }
74 if in.Patch != nil {
75 in, out := &in.Patch, &out.Patch
76 *out = make([]byte, len(*in))
77 copy(*out, *in)
78 }
79 if in.PatchType != nil {
80 in, out := &in.PatchType, &out.PatchType
81 *out = new(PatchType)
82 **out = **in
83 }
84 if in.AuditAnnotations != nil {
85 in, out := &in.AuditAnnotations, &out.AuditAnnotations
86 *out = make(map[string]string, len(*in))
87 for key, val := range *in {
88 (*out)[key] = val
89 }
90 }
91 if in.Warnings != nil {
92 in, out := &in.Warnings, &out.Warnings
93 *out = make([]string, len(*in))
94 copy(*out, *in)
95 }
96 return
97 }
98
99
100 func (in *AdmissionResponse) DeepCopy() *AdmissionResponse {
101 if in == nil {
102 return nil
103 }
104 out := new(AdmissionResponse)
105 in.DeepCopyInto(out)
106 return out
107 }
108
109
110 func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) {
111 *out = *in
112 out.TypeMeta = in.TypeMeta
113 if in.Request != nil {
114 in, out := &in.Request, &out.Request
115 *out = new(AdmissionRequest)
116 (*in).DeepCopyInto(*out)
117 }
118 if in.Response != nil {
119 in, out := &in.Response, &out.Response
120 *out = new(AdmissionResponse)
121 (*in).DeepCopyInto(*out)
122 }
123 return
124 }
125
126
127 func (in *AdmissionReview) DeepCopy() *AdmissionReview {
128 if in == nil {
129 return nil
130 }
131 out := new(AdmissionReview)
132 in.DeepCopyInto(out)
133 return out
134 }
135
136
137 func (in *AdmissionReview) DeepCopyObject() runtime.Object {
138 if c := in.DeepCopy(); c != nil {
139 return c
140 }
141 return nil
142 }
143
View as plain text