forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zz_generated.defaults.go
63 lines (57 loc) · 2.29 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
// +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"
)
// 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(&MasterConfig{}, func(obj interface{}) { SetObjectDefaults_MasterConfig(obj.(*MasterConfig)) })
scheme.AddTypeDefaultingFunc(&NodeConfig{}, func(obj interface{}) { SetObjectDefaults_NodeConfig(obj.(*NodeConfig)) })
return nil
}
func SetObjectDefaults_MasterConfig(in *MasterConfig) {
SetDefaults_MasterConfig(in)
SetDefaults_ServingInfo(&in.ServingInfo.ServingInfo)
SetDefaults_EtcdStorageConfig(&in.EtcdStorageConfig)
if in.KubernetesMasterConfig != nil {
SetDefaults_KubernetesMasterConfig(in.KubernetesMasterConfig)
}
if in.EtcdConfig != nil {
SetDefaults_ServingInfo(&in.EtcdConfig.ServingInfo)
SetDefaults_ServingInfo(&in.EtcdConfig.PeerServingInfo)
}
if in.OAuthConfig != nil {
for i := range in.OAuthConfig.IdentityProviders {
a := &in.OAuthConfig.IdentityProviders[i]
SetDefaults_IdentityProvider(a)
}
SetDefaults_GrantConfig(&in.OAuthConfig.GrantConfig)
}
if in.AssetConfig != nil {
SetDefaults_ServingInfo(&in.AssetConfig.ServingInfo.ServingInfo)
}
if in.DNSConfig != nil {
SetDefaults_DNSConfig(in.DNSConfig)
}
if in.MasterClients.OpenShiftLoopbackClientConnectionOverrides != nil {
SetDefaults_ClientConnectionOverrides(in.MasterClients.OpenShiftLoopbackClientConnectionOverrides)
}
if in.MasterClients.ExternalKubernetesClientConnectionOverrides != nil {
SetDefaults_ClientConnectionOverrides(in.MasterClients.ExternalKubernetesClientConnectionOverrides)
}
SetDefaults_ImagePolicyConfig(&in.ImagePolicyConfig)
if in.ProjectConfig.SecurityAllocator != nil {
SetDefaults_SecurityAllocator(in.ProjectConfig.SecurityAllocator)
}
}
func SetObjectDefaults_NodeConfig(in *NodeConfig) {
SetDefaults_NodeConfig(in)
SetDefaults_ServingInfo(&in.ServingInfo)
if in.MasterClientConnectionOverrides != nil {
SetDefaults_ClientConnectionOverrides(in.MasterClientConnectionOverrides)
}
SetDefaults_DockerConfig(&in.DockerConfig)
}