mirror of
https://github.com/rancher/types.git
synced 2025-06-28 06:26:49 +00:00
go generate
This commit is contained in:
parent
11f0e007b6
commit
ba77543ee1
@ -95,6 +95,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||
in.(*ChangePasswordInput).DeepCopyInto(out.(*ChangePasswordInput))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ChangePasswordInput{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*CloudProvider).DeepCopyInto(out.(*CloudProvider))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&CloudProvider{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*Cluster).DeepCopyInto(out.(*Cluster))
|
||||
return nil
|
||||
@ -1311,6 +1315,29 @@ func (in *ChangePasswordInput) DeepCopy() *ChangePasswordInput {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *CloudProvider) DeepCopyInto(out *CloudProvider) {
|
||||
*out = *in
|
||||
if in.CloudConfig != nil {
|
||||
in, out := &in.CloudConfig, &out.CloudConfig
|
||||
*out = make(map[string]string, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProvider.
|
||||
func (in *CloudProvider) DeepCopy() *CloudProvider {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(CloudProvider)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Cluster) DeepCopyInto(out *Cluster) {
|
||||
*out = *in
|
||||
@ -5280,6 +5307,7 @@ func (in *RancherKubernetesEngineConfig) DeepCopyInto(out *RancherKubernetesEngi
|
||||
copy(*out, *in)
|
||||
}
|
||||
in.Ingress.DeepCopyInto(&out.Ingress)
|
||||
in.CloudProvider.DeepCopyInto(&out.CloudProvider)
|
||||
return
|
||||
}
|
||||
|
||||
|
12
client/management/v3/zz_generated_cloud_provider.go
Normal file
12
client/management/v3/zz_generated_cloud_provider.go
Normal file
@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
CloudProviderType = "cloudProvider"
|
||||
CloudProviderFieldCloudConfig = "cloudConfig"
|
||||
CloudProviderFieldName = "name"
|
||||
)
|
||||
|
||||
type CloudProvider struct {
|
||||
CloudConfig map[string]string `json:"cloudConfig,omitempty" yaml:"cloudConfig,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
}
|
@ -6,6 +6,7 @@ const (
|
||||
RancherKubernetesEngineConfigFieldAddonsInclude = "addonsInclude"
|
||||
RancherKubernetesEngineConfigFieldAuthentication = "authentication"
|
||||
RancherKubernetesEngineConfigFieldAuthorization = "authorization"
|
||||
RancherKubernetesEngineConfigFieldCloudProvider = "cloudProvider"
|
||||
RancherKubernetesEngineConfigFieldClusterName = "clusterName"
|
||||
RancherKubernetesEngineConfigFieldIgnoreDockerVersion = "ignoreDockerVersion"
|
||||
RancherKubernetesEngineConfigFieldIngress = "ingress"
|
||||
@ -23,6 +24,7 @@ type RancherKubernetesEngineConfig struct {
|
||||
AddonsInclude []string `json:"addonsInclude,omitempty" yaml:"addonsInclude,omitempty"`
|
||||
Authentication *AuthnConfig `json:"authentication,omitempty" yaml:"authentication,omitempty"`
|
||||
Authorization *AuthzConfig `json:"authorization,omitempty" yaml:"authorization,omitempty"`
|
||||
CloudProvider *CloudProvider `json:"cloudProvider,omitempty" yaml:"cloudProvider,omitempty"`
|
||||
ClusterName string `json:"clusterName,omitempty" yaml:"clusterName,omitempty"`
|
||||
IgnoreDockerVersion bool `json:"ignoreDockerVersion,omitempty" yaml:"ignoreDockerVersion,omitempty"`
|
||||
Ingress *IngressConfig `json:"ingress,omitempty" yaml:"ingress,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user