/
zz_generated.defaults.go
154 lines (134 loc) · 5.22 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
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
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*
Copyright (c) SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by defaulter-gen. DO NOT EDIT.
package v1beta1
import (
runtime "k8s.io/apimachinery/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(&CloudProfile{}, func(obj interface{}) { SetObjectDefaults_CloudProfile(obj.(*CloudProfile)) })
scheme.AddTypeDefaultingFunc(&CloudProfileList{}, func(obj interface{}) { SetObjectDefaults_CloudProfileList(obj.(*CloudProfileList)) })
scheme.AddTypeDefaultingFunc(&ControllerRegistration{}, func(obj interface{}) { SetObjectDefaults_ControllerRegistration(obj.(*ControllerRegistration)) })
scheme.AddTypeDefaultingFunc(&ControllerRegistrationList{}, func(obj interface{}) { SetObjectDefaults_ControllerRegistrationList(obj.(*ControllerRegistrationList)) })
scheme.AddTypeDefaultingFunc(&Project{}, func(obj interface{}) { SetObjectDefaults_Project(obj.(*Project)) })
scheme.AddTypeDefaultingFunc(&ProjectList{}, func(obj interface{}) { SetObjectDefaults_ProjectList(obj.(*ProjectList)) })
scheme.AddTypeDefaultingFunc(&SecretBinding{}, func(obj interface{}) { SetObjectDefaults_SecretBinding(obj.(*SecretBinding)) })
scheme.AddTypeDefaultingFunc(&SecretBindingList{}, func(obj interface{}) { SetObjectDefaults_SecretBindingList(obj.(*SecretBindingList)) })
scheme.AddTypeDefaultingFunc(&Seed{}, func(obj interface{}) { SetObjectDefaults_Seed(obj.(*Seed)) })
scheme.AddTypeDefaultingFunc(&SeedList{}, func(obj interface{}) { SetObjectDefaults_SeedList(obj.(*SeedList)) })
scheme.AddTypeDefaultingFunc(&Shoot{}, func(obj interface{}) { SetObjectDefaults_Shoot(obj.(*Shoot)) })
scheme.AddTypeDefaultingFunc(&ShootList{}, func(obj interface{}) { SetObjectDefaults_ShootList(obj.(*ShootList)) })
return nil
}
func SetObjectDefaults_CloudProfile(in *CloudProfile) {
for i := range in.Spec.MachineImages {
a := &in.Spec.MachineImages[i]
for j := range a.Versions {
b := &a.Versions[j]
SetDefaults_MachineImageVersion(b)
}
}
for i := range in.Spec.MachineTypes {
a := &in.Spec.MachineTypes[i]
SetDefaults_MachineType(a)
}
for i := range in.Spec.VolumeTypes {
a := &in.Spec.VolumeTypes[i]
SetDefaults_VolumeType(a)
}
}
func SetObjectDefaults_CloudProfileList(in *CloudProfileList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_CloudProfile(a)
}
}
func SetObjectDefaults_ControllerRegistration(in *ControllerRegistration) {
for i := range in.Spec.Resources {
a := &in.Spec.Resources[i]
SetDefaults_ControllerResource(a)
}
if in.Spec.Deployment != nil {
SetDefaults_ControllerRegistrationDeployment(in.Spec.Deployment)
}
}
func SetObjectDefaults_ControllerRegistrationList(in *ControllerRegistrationList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_ControllerRegistration(a)
}
}
func SetObjectDefaults_Project(in *Project) {
SetDefaults_Project(in)
}
func SetObjectDefaults_ProjectList(in *ProjectList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_Project(a)
}
}
func SetObjectDefaults_SecretBinding(in *SecretBinding) {
SetDefaults_SecretBinding(in)
}
func SetObjectDefaults_SecretBindingList(in *SecretBindingList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_SecretBinding(a)
}
}
func SetObjectDefaults_Seed(in *Seed) {
SetDefaults_Seed(in)
if in.Spec.Settings != nil {
if in.Spec.Settings.DependencyWatchdog != nil {
SetDefaults_SeedSettingDependencyWatchdog(in.Spec.Settings.DependencyWatchdog)
}
}
}
func SetObjectDefaults_SeedList(in *SeedList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_Seed(a)
}
}
func SetObjectDefaults_Shoot(in *Shoot) {
SetDefaults_Shoot(in)
if in.Spec.Addons != nil {
if in.Spec.Addons.NginxIngress != nil {
SetDefaults_NginxIngress(in.Spec.Addons.NginxIngress)
}
}
if in.Spec.Kubernetes.ClusterAutoscaler != nil {
SetDefaults_ClusterAutoscaler(in.Spec.Kubernetes.ClusterAutoscaler)
}
if in.Spec.Kubernetes.VerticalPodAutoscaler != nil {
SetDefaults_VerticalPodAutoscaler(in.Spec.Kubernetes.VerticalPodAutoscaler)
}
if in.Spec.Maintenance != nil {
SetDefaults_Maintenance(in.Spec.Maintenance)
}
for i := range in.Spec.Provider.Workers {
a := &in.Spec.Provider.Workers[i]
SetDefaults_Worker(a)
}
}
func SetObjectDefaults_ShootList(in *ShootList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_Shoot(a)
}
}