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