-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
zz_generated.defaults.go
64 lines (54 loc) · 2.04 KB
/
zz_generated.defaults.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
// +build !ignore_autogenerated_openshift
// This file was autogenerated by defaulter-gen. Do not edit it manually!
package v1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
scheme.AddTypeDefaultingFunc(&ClusterRole{}, func(obj interface{}) { SetObjectDefaults_ClusterRole(obj.(*ClusterRole)) })
scheme.AddTypeDefaultingFunc(&ClusterRoleList{}, func(obj interface{}) { SetObjectDefaults_ClusterRoleList(obj.(*ClusterRoleList)) })
scheme.AddTypeDefaultingFunc(&Role{}, func(obj interface{}) { SetObjectDefaults_Role(obj.(*Role)) })
scheme.AddTypeDefaultingFunc(&RoleList{}, func(obj interface{}) { SetObjectDefaults_RoleList(obj.(*RoleList)) })
scheme.AddTypeDefaultingFunc(&SelfSubjectRulesReview{}, func(obj interface{}) { SetObjectDefaults_SelfSubjectRulesReview(obj.(*SelfSubjectRulesReview)) })
scheme.AddTypeDefaultingFunc(&SubjectRulesReview{}, func(obj interface{}) { SetObjectDefaults_SubjectRulesReview(obj.(*SubjectRulesReview)) })
return nil
}
func SetObjectDefaults_ClusterRole(in *ClusterRole) {
for i := range in.Rules {
a := &in.Rules[i]
SetDefaults_PolicyRule(a)
}
}
func SetObjectDefaults_ClusterRoleList(in *ClusterRoleList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_ClusterRole(a)
}
}
func SetObjectDefaults_Role(in *Role) {
for i := range in.Rules {
a := &in.Rules[i]
SetDefaults_PolicyRule(a)
}
}
func SetObjectDefaults_RoleList(in *RoleList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_Role(a)
}
}
func SetObjectDefaults_SelfSubjectRulesReview(in *SelfSubjectRulesReview) {
for i := range in.Status.Rules {
a := &in.Status.Rules[i]
SetDefaults_PolicyRule(a)
}
}
func SetObjectDefaults_SubjectRulesReview(in *SubjectRulesReview) {
for i := range in.Status.Rules {
a := &in.Status.Rules[i]
SetDefaults_PolicyRule(a)
}
}