This repository has been archived by the owner on Jul 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
zz_generated.deepcopy.go
175 lines (161 loc) · 6.27 KB
/
zz_generated.deepcopy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
// +build !ignore_autogenerated_openshift
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package api
import (
pkg_api "k8s.io/kubernetes/pkg/api"
conversion "k8s.io/kubernetes/pkg/conversion"
runtime "k8s.io/kubernetes/pkg/runtime"
reflect "reflect"
)
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityPolicyReview, InType: reflect.TypeOf(&PodSecurityPolicyReview{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityPolicyReviewSpec, InType: reflect.TypeOf(&PodSecurityPolicyReviewSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityPolicyReviewStatus, InType: reflect.TypeOf(&PodSecurityPolicyReviewStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityPolicySelfSubjectReview, InType: reflect.TypeOf(&PodSecurityPolicySelfSubjectReview{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityPolicySelfSubjectReviewSpec, InType: reflect.TypeOf(&PodSecurityPolicySelfSubjectReviewSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityPolicySubjectReview, InType: reflect.TypeOf(&PodSecurityPolicySubjectReview{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityPolicySubjectReviewSpec, InType: reflect.TypeOf(&PodSecurityPolicySubjectReviewSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PodSecurityPolicySubjectReviewStatus, InType: reflect.TypeOf(&PodSecurityPolicySubjectReviewStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceAccountPodSecurityPolicyReviewStatus, InType: reflect.TypeOf(&ServiceAccountPodSecurityPolicyReviewStatus{})},
)
}
func DeepCopy_api_PodSecurityPolicyReview(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*PodSecurityPolicyReview)
out := out.(*PodSecurityPolicyReview)
out.TypeMeta = in.TypeMeta
if err := DeepCopy_api_PodSecurityPolicyReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_api_PodSecurityPolicyReviewStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil
}
}
func DeepCopy_api_PodSecurityPolicyReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*PodSecurityPolicyReviewSpec)
out := out.(*PodSecurityPolicyReviewSpec)
if err := pkg_api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err
}
if in.ServiceAccountNames != nil {
in, out := &in.ServiceAccountNames, &out.ServiceAccountNames
*out = make([]string, len(*in))
copy(*out, *in)
} else {
out.ServiceAccountNames = nil
}
return nil
}
}
func DeepCopy_api_PodSecurityPolicyReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*PodSecurityPolicyReviewStatus)
out := out.(*PodSecurityPolicyReviewStatus)
if in.AllowedServiceAccounts != nil {
in, out := &in.AllowedServiceAccounts, &out.AllowedServiceAccounts
*out = make([]ServiceAccountPodSecurityPolicyReviewStatus, len(*in))
for i := range *in {
if err := DeepCopy_api_ServiceAccountPodSecurityPolicyReviewStatus(&(*in)[i], &(*out)[i], c); err != nil {
return err
}
}
} else {
out.AllowedServiceAccounts = nil
}
return nil
}
}
func DeepCopy_api_PodSecurityPolicySelfSubjectReview(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*PodSecurityPolicySelfSubjectReview)
out := out.(*PodSecurityPolicySelfSubjectReview)
out.TypeMeta = in.TypeMeta
if err := DeepCopy_api_PodSecurityPolicySelfSubjectReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_api_PodSecurityPolicySubjectReviewStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil
}
}
func DeepCopy_api_PodSecurityPolicySelfSubjectReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*PodSecurityPolicySelfSubjectReviewSpec)
out := out.(*PodSecurityPolicySelfSubjectReviewSpec)
if err := pkg_api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err
}
return nil
}
}
func DeepCopy_api_PodSecurityPolicySubjectReview(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*PodSecurityPolicySubjectReview)
out := out.(*PodSecurityPolicySubjectReview)
out.TypeMeta = in.TypeMeta
if err := DeepCopy_api_PodSecurityPolicySubjectReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_api_PodSecurityPolicySubjectReviewStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil
}
}
func DeepCopy_api_PodSecurityPolicySubjectReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*PodSecurityPolicySubjectReviewSpec)
out := out.(*PodSecurityPolicySubjectReviewSpec)
if err := pkg_api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err
}
out.User = in.User
if in.Groups != nil {
in, out := &in.Groups, &out.Groups
*out = make([]string, len(*in))
copy(*out, *in)
} else {
out.Groups = nil
}
return nil
}
}
func DeepCopy_api_PodSecurityPolicySubjectReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*PodSecurityPolicySubjectReviewStatus)
out := out.(*PodSecurityPolicySubjectReviewStatus)
if in.AllowedBy != nil {
in, out := &in.AllowedBy, &out.AllowedBy
*out = new(pkg_api.ObjectReference)
**out = **in
} else {
out.AllowedBy = nil
}
out.Reason = in.Reason
if err := pkg_api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err
}
return nil
}
}
func DeepCopy_api_ServiceAccountPodSecurityPolicyReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*ServiceAccountPodSecurityPolicyReviewStatus)
out := out.(*ServiceAccountPodSecurityPolicyReviewStatus)
if err := DeepCopy_api_PodSecurityPolicySubjectReviewStatus(&in.PodSecurityPolicySubjectReviewStatus, &out.PodSecurityPolicySubjectReviewStatus, c); err != nil {
return err
}
out.Name = in.Name
return nil
}
}