forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zz_generated.defaults.go
51 lines (43 loc) · 1.98 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
// +build !ignore_autogenerated_openshift
// This file was autogenerated by defaulter-gen. Do not edit it manually!
package v1
import (
runtime "k8s.io/apimachinery/pkg/runtime"
api_v1 "k8s.io/kubernetes/pkg/api/v1"
)
// 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(&AppliedClusterResourceQuota{}, func(obj interface{}) {
SetObjectDefaults_AppliedClusterResourceQuota(obj.(*AppliedClusterResourceQuota))
})
scheme.AddTypeDefaultingFunc(&AppliedClusterResourceQuotaList{}, func(obj interface{}) {
SetObjectDefaults_AppliedClusterResourceQuotaList(obj.(*AppliedClusterResourceQuotaList))
})
scheme.AddTypeDefaultingFunc(&ClusterResourceQuota{}, func(obj interface{}) { SetObjectDefaults_ClusterResourceQuota(obj.(*ClusterResourceQuota)) })
scheme.AddTypeDefaultingFunc(&ClusterResourceQuotaList{}, func(obj interface{}) { SetObjectDefaults_ClusterResourceQuotaList(obj.(*ClusterResourceQuotaList)) })
return nil
}
func SetObjectDefaults_AppliedClusterResourceQuota(in *AppliedClusterResourceQuota) {
api_v1.SetDefaults_ResourceList(&in.Spec.Quota.Hard)
api_v1.SetDefaults_ResourceList(&in.Status.Total.Hard)
api_v1.SetDefaults_ResourceList(&in.Status.Total.Used)
}
func SetObjectDefaults_AppliedClusterResourceQuotaList(in *AppliedClusterResourceQuotaList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_AppliedClusterResourceQuota(a)
}
}
func SetObjectDefaults_ClusterResourceQuota(in *ClusterResourceQuota) {
api_v1.SetDefaults_ResourceList(&in.Spec.Quota.Hard)
api_v1.SetDefaults_ResourceList(&in.Status.Total.Hard)
api_v1.SetDefaults_ResourceList(&in.Status.Total.Used)
}
func SetObjectDefaults_ClusterResourceQuotaList(in *ClusterResourceQuotaList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_ClusterResourceQuota(a)
}
}