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 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
25 runtime "k8s.io/apimachinery/pkg/runtime"
28 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
29 func (in *AggregationRule) DeepCopyInto(out *AggregationRule) {
31 if in.ClusterRoleSelectors != nil {
32 in, out := &in.ClusterRoleSelectors, &out.ClusterRoleSelectors
33 *out = make([]metav1.LabelSelector, len(*in))
35 (*in)[i].DeepCopyInto(&(*out)[i])
41 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AggregationRule.
42 func (in *AggregationRule) DeepCopy() *AggregationRule {
46 out := new(AggregationRule)
51 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
52 func (in *ClusterRole) DeepCopyInto(out *ClusterRole) {
54 out.TypeMeta = in.TypeMeta
55 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
57 in, out := &in.Rules, &out.Rules
58 *out = make([]PolicyRule, len(*in))
60 (*in)[i].DeepCopyInto(&(*out)[i])
63 if in.AggregationRule != nil {
64 in, out := &in.AggregationRule, &out.AggregationRule
65 *out = new(AggregationRule)
66 (*in).DeepCopyInto(*out)
71 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRole.
72 func (in *ClusterRole) DeepCopy() *ClusterRole {
76 out := new(ClusterRole)
81 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
82 func (in *ClusterRole) DeepCopyObject() runtime.Object {
83 if c := in.DeepCopy(); c != nil {
89 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
90 func (in *ClusterRoleBinding) DeepCopyInto(out *ClusterRoleBinding) {
92 out.TypeMeta = in.TypeMeta
93 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
94 if in.Subjects != nil {
95 in, out := &in.Subjects, &out.Subjects
96 *out = make([]Subject, len(*in))
99 out.RoleRef = in.RoleRef
103 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBinding.
104 func (in *ClusterRoleBinding) DeepCopy() *ClusterRoleBinding {
108 out := new(ClusterRoleBinding)
113 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
114 func (in *ClusterRoleBinding) DeepCopyObject() runtime.Object {
115 if c := in.DeepCopy(); c != nil {
121 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
122 func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList) {
124 out.TypeMeta = in.TypeMeta
125 out.ListMeta = in.ListMeta
127 in, out := &in.Items, &out.Items
128 *out = make([]ClusterRoleBinding, len(*in))
130 (*in)[i].DeepCopyInto(&(*out)[i])
136 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBindingList.
137 func (in *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList {
141 out := new(ClusterRoleBindingList)
146 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
147 func (in *ClusterRoleBindingList) DeepCopyObject() runtime.Object {
148 if c := in.DeepCopy(); c != nil {
154 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
155 func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList) {
157 out.TypeMeta = in.TypeMeta
158 out.ListMeta = in.ListMeta
160 in, out := &in.Items, &out.Items
161 *out = make([]ClusterRole, len(*in))
163 (*in)[i].DeepCopyInto(&(*out)[i])
169 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleList.
170 func (in *ClusterRoleList) DeepCopy() *ClusterRoleList {
174 out := new(ClusterRoleList)
179 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
180 func (in *ClusterRoleList) DeepCopyObject() runtime.Object {
181 if c := in.DeepCopy(); c != nil {
187 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
188 func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
191 in, out := &in.Verbs, &out.Verbs
192 *out = make([]string, len(*in))
195 if in.APIGroups != nil {
196 in, out := &in.APIGroups, &out.APIGroups
197 *out = make([]string, len(*in))
200 if in.Resources != nil {
201 in, out := &in.Resources, &out.Resources
202 *out = make([]string, len(*in))
205 if in.ResourceNames != nil {
206 in, out := &in.ResourceNames, &out.ResourceNames
207 *out = make([]string, len(*in))
210 if in.NonResourceURLs != nil {
211 in, out := &in.NonResourceURLs, &out.NonResourceURLs
212 *out = make([]string, len(*in))
218 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
219 func (in *PolicyRule) DeepCopy() *PolicyRule {
223 out := new(PolicyRule)
228 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
229 func (in *Role) DeepCopyInto(out *Role) {
231 out.TypeMeta = in.TypeMeta
232 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
234 in, out := &in.Rules, &out.Rules
235 *out = make([]PolicyRule, len(*in))
237 (*in)[i].DeepCopyInto(&(*out)[i])
243 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role.
244 func (in *Role) DeepCopy() *Role {
253 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
254 func (in *Role) DeepCopyObject() runtime.Object {
255 if c := in.DeepCopy(); c != nil {
261 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
262 func (in *RoleBinding) DeepCopyInto(out *RoleBinding) {
264 out.TypeMeta = in.TypeMeta
265 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
266 if in.Subjects != nil {
267 in, out := &in.Subjects, &out.Subjects
268 *out = make([]Subject, len(*in))
271 out.RoleRef = in.RoleRef
275 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding.
276 func (in *RoleBinding) DeepCopy() *RoleBinding {
280 out := new(RoleBinding)
285 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
286 func (in *RoleBinding) DeepCopyObject() runtime.Object {
287 if c := in.DeepCopy(); c != nil {
293 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
294 func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) {
296 out.TypeMeta = in.TypeMeta
297 out.ListMeta = in.ListMeta
299 in, out := &in.Items, &out.Items
300 *out = make([]RoleBinding, len(*in))
302 (*in)[i].DeepCopyInto(&(*out)[i])
308 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingList.
309 func (in *RoleBindingList) DeepCopy() *RoleBindingList {
313 out := new(RoleBindingList)
318 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
319 func (in *RoleBindingList) DeepCopyObject() runtime.Object {
320 if c := in.DeepCopy(); c != nil {
326 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
327 func (in *RoleList) DeepCopyInto(out *RoleList) {
329 out.TypeMeta = in.TypeMeta
330 out.ListMeta = in.ListMeta
332 in, out := &in.Items, &out.Items
333 *out = make([]Role, len(*in))
335 (*in)[i].DeepCopyInto(&(*out)[i])
341 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList.
342 func (in *RoleList) DeepCopy() *RoleList {
351 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
352 func (in *RoleList) DeepCopyObject() runtime.Object {
353 if c := in.DeepCopy(); c != nil {
359 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
360 func (in *RoleRef) DeepCopyInto(out *RoleRef) {
365 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRef.
366 func (in *RoleRef) DeepCopy() *RoleRef {
375 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
376 func (in *Subject) DeepCopyInto(out *Subject) {
381 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subject.
382 func (in *Subject) DeepCopy() *Subject {