-
Notifications
You must be signed in to change notification settings - Fork 467
/
zz_generated.defaults.go
86 lines (75 loc) · 3.01 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
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by defaulter-gen. DO NOT EDIT.
package v1alpha1
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(&Gardenlet{}, func(obj interface{}) { SetObjectDefaults_Gardenlet(obj.(*Gardenlet)) })
scheme.AddTypeDefaultingFunc(&GardenletList{}, func(obj interface{}) { SetObjectDefaults_GardenletList(obj.(*GardenletList)) })
scheme.AddTypeDefaultingFunc(&ManagedSeed{}, func(obj interface{}) { SetObjectDefaults_ManagedSeed(obj.(*ManagedSeed)) })
scheme.AddTypeDefaultingFunc(&ManagedSeedList{}, func(obj interface{}) { SetObjectDefaults_ManagedSeedList(obj.(*ManagedSeedList)) })
scheme.AddTypeDefaultingFunc(&ManagedSeedSet{}, func(obj interface{}) { SetObjectDefaults_ManagedSeedSet(obj.(*ManagedSeedSet)) })
scheme.AddTypeDefaultingFunc(&ManagedSeedSetList{}, func(obj interface{}) { SetObjectDefaults_ManagedSeedSetList(obj.(*ManagedSeedSetList)) })
return nil
}
func SetObjectDefaults_Gardenlet(in *Gardenlet) {
SetDefaults_Gardenlet(in)
SetDefaults_GardenletDeployment(&in.Spec.Deployment.GardenletDeployment)
if in.Spec.Deployment.GardenletDeployment.Image != nil {
SetDefaults_Image(in.Spec.Deployment.GardenletDeployment.Image)
}
}
func SetObjectDefaults_GardenletList(in *GardenletList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_Gardenlet(a)
}
}
func SetObjectDefaults_ManagedSeed(in *ManagedSeed) {
SetDefaults_ManagedSeed(in)
if in.Spec.Gardenlet != nil {
if in.Spec.Gardenlet.Deployment != nil {
SetDefaults_GardenletDeployment(in.Spec.Gardenlet.Deployment)
if in.Spec.Gardenlet.Deployment.Image != nil {
SetDefaults_Image(in.Spec.Gardenlet.Deployment.Image)
}
}
}
}
func SetObjectDefaults_ManagedSeedList(in *ManagedSeedList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_ManagedSeed(a)
}
}
func SetObjectDefaults_ManagedSeedSet(in *ManagedSeedSet) {
SetDefaults_ManagedSeedSet(in)
if in.Spec.Template.Spec.Gardenlet != nil {
if in.Spec.Template.Spec.Gardenlet.Deployment != nil {
SetDefaults_GardenletDeployment(in.Spec.Template.Spec.Gardenlet.Deployment)
if in.Spec.Template.Spec.Gardenlet.Deployment.Image != nil {
SetDefaults_Image(in.Spec.Template.Spec.Gardenlet.Deployment.Image)
}
}
}
if in.Spec.UpdateStrategy != nil {
SetDefaults_UpdateStrategy(in.Spec.UpdateStrategy)
if in.Spec.UpdateStrategy.RollingUpdate != nil {
SetDefaults_RollingUpdateStrategy(in.Spec.UpdateStrategy.RollingUpdate)
}
}
}
func SetObjectDefaults_ManagedSeedSetList(in *ManagedSeedSetList) {
for i := range in.Items {
a := &in.Items[i]
SetObjectDefaults_ManagedSeedSet(a)
}
}