1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

Update generated code

This commit is contained in:
Darren Shepherd
2018-01-23 14:30:11 -07:00
parent 4fbc7e62c6
commit e1cc95ef25
8 changed files with 107 additions and 19 deletions

View File

@@ -115,6 +115,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
in.(*ClusterStatus).DeepCopyInto(out.(*ClusterStatus))
return nil
}, InType: reflect.TypeOf(&ClusterStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*CustomConfig).DeepCopyInto(out.(*CustomConfig))
return nil
}, InType: reflect.TypeOf(&CustomConfig{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*DynamicSchema).DeepCopyInto(out.(*DynamicSchema))
return nil
@@ -187,6 +191,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
in.(*GroupMemberList).DeepCopyInto(out.(*GroupMemberList))
return nil
}, InType: reflect.TypeOf(&GroupMemberList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ImportedConfig).DeepCopyInto(out.(*ImportedConfig))
return nil
}, InType: reflect.TypeOf(&ImportedConfig{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*K8sServerConfig).DeepCopyInto(out.(*K8sServerConfig))
return nil
@@ -1008,6 +1016,15 @@ func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.ImportedConfig != nil {
in, out := &in.ImportedConfig, &out.ImportedConfig
if *in == nil {
*out = nil
} else {
*out = new(ImportedConfig)
**out = **in
}
}
if in.EmbeddedConfig != nil {
in, out := &in.EmbeddedConfig, &out.EmbeddedConfig
if *in == nil {
@@ -1114,6 +1131,22 @@ func (in *ClusterStatus) DeepCopy() *ClusterStatus {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CustomConfig) DeepCopyInto(out *CustomConfig) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomConfig.
func (in *CustomConfig) DeepCopy() *CustomConfig {
if in == nil {
return nil
}
out := new(CustomConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DynamicSchema) DeepCopyInto(out *DynamicSchema) {
*out = *in
@@ -1631,6 +1664,22 @@ func (in *GroupMemberList) DeepCopyObject() runtime.Object {
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ImportedConfig) DeepCopyInto(out *ImportedConfig) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImportedConfig.
func (in *ImportedConfig) DeepCopy() *ImportedConfig {
if in == nil {
return nil
}
out := new(ImportedConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *K8sServerConfig) DeepCopyInto(out *K8sServerConfig) {
*out = *in
@@ -2131,6 +2180,15 @@ func (in *MachineList) DeepCopyObject() runtime.Object {
func (in *MachineSpec) DeepCopyInto(out *MachineSpec) {
*out = *in
in.NodeSpec.DeepCopyInto(&out.NodeSpec)
if in.CustomConfig != nil {
in, out := &in.CustomConfig, &out.CustomConfig
if *in == nil {
*out = nil
} else {
*out = new(CustomConfig)
**out = **in
}
}
if in.Role != nil {
in, out := &in.Role, &out.Role
*out = make([]string, len(*in))

View File

@@ -20,10 +20,9 @@ const (
ClusterFieldDefaultPodSecurityPolicyTemplateId = "defaultPodSecurityPolicyTemplateId"
ClusterFieldDescription = "description"
ClusterFieldDriver = "driver"
ClusterFieldEmbedded = "embedded"
ClusterFieldEmbeddedConfig = "embeddedConfig"
ClusterFieldGoogleKubernetesEngineConfig = "googleKubernetesEngineConfig"
ClusterFieldImported = "imported"
ClusterFieldImportedConfig = "importedConfig"
ClusterFieldInternal = "internal"
ClusterFieldLabels = "labels"
ClusterFieldLimits = "limits"
@@ -55,10 +54,9 @@ type Cluster struct {
DefaultPodSecurityPolicyTemplateId string `json:"defaultPodSecurityPolicyTemplateId,omitempty"`
Description string `json:"description,omitempty"`
Driver string `json:"driver,omitempty"`
Embedded *bool `json:"embedded,omitempty"`
EmbeddedConfig *K8sServerConfig `json:"embeddedConfig,omitempty"`
GoogleKubernetesEngineConfig *GoogleKubernetesEngineConfig `json:"googleKubernetesEngineConfig,omitempty"`
Imported *bool `json:"imported,omitempty"`
ImportedConfig *ImportedConfig `json:"importedConfig,omitempty"`
Internal *bool `json:"internal,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Limits map[string]string `json:"limits,omitempty"`

View File

@@ -7,10 +7,9 @@ const (
ClusterSpecFieldDefaultPodSecurityPolicyTemplateId = "defaultPodSecurityPolicyTemplateId"
ClusterSpecFieldDescription = "description"
ClusterSpecFieldDisplayName = "displayName"
ClusterSpecFieldEmbedded = "embedded"
ClusterSpecFieldEmbeddedConfig = "embeddedConfig"
ClusterSpecFieldGoogleKubernetesEngineConfig = "googleKubernetesEngineConfig"
ClusterSpecFieldImported = "imported"
ClusterSpecFieldImportedConfig = "importedConfig"
ClusterSpecFieldInternal = "internal"
ClusterSpecFieldNodes = "nodes"
ClusterSpecFieldRancherKubernetesEngineConfig = "rancherKubernetesEngineConfig"
@@ -22,10 +21,9 @@ type ClusterSpec struct {
DefaultPodSecurityPolicyTemplateId string `json:"defaultPodSecurityPolicyTemplateId,omitempty"`
Description string `json:"description,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Embedded *bool `json:"embedded,omitempty"`
EmbeddedConfig *K8sServerConfig `json:"embeddedConfig,omitempty"`
GoogleKubernetesEngineConfig *GoogleKubernetesEngineConfig `json:"googleKubernetesEngineConfig,omitempty"`
Imported *bool `json:"imported,omitempty"`
ImportedConfig *ImportedConfig `json:"importedConfig,omitempty"`
Internal *bool `json:"internal,omitempty"`
Nodes []MachineConfig `json:"nodes,omitempty"`
RancherKubernetesEngineConfig *RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty"`

View File

@@ -0,0 +1,18 @@
package client
const (
CustomConfigType = "customConfig"
CustomConfigFieldAddress = "address"
CustomConfigFieldDockerSocket = "dockerSocket"
CustomConfigFieldInternalAddress = "internalAddress"
CustomConfigFieldSSHKey = "sshKey"
CustomConfigFieldUser = "user"
)
type CustomConfig struct {
Address string `json:"address,omitempty"`
DockerSocket string `json:"dockerSocket,omitempty"`
InternalAddress string `json:"internalAddress,omitempty"`
SSHKey string `json:"sshKey,omitempty"`
User string `json:"user,omitempty"`
}

View File

@@ -0,0 +1,10 @@
package client
const (
ImportedConfigType = "importedConfig"
ImportedConfigFieldKubeConfig = "kubeConfig"
)
type ImportedConfig struct {
KubeConfig string `json:"kubeConfig,omitempty"`
}

View File

@@ -13,6 +13,7 @@ const (
MachineFieldConditions = "conditions"
MachineFieldCreated = "created"
MachineFieldCreatorID = "creatorId"
MachineFieldCustomConfig = "customConfig"
MachineFieldDescription = "description"
MachineFieldHostname = "hostname"
MachineFieldIPAddress = "ipAddress"
@@ -54,6 +55,7 @@ type Machine struct {
Conditions []MachineCondition `json:"conditions,omitempty"`
Created string `json:"created,omitempty"`
CreatorID string `json:"creatorId,omitempty"`
CustomConfig *CustomConfig `json:"customConfig,omitempty"`
Description string `json:"description,omitempty"`
Hostname string `json:"hostname,omitempty"`
IPAddress string `json:"ipAddress,omitempty"`

View File

@@ -3,6 +3,7 @@ package client
const (
MachineConfigType = "machineConfig"
MachineConfigFieldAnnotations = "annotations"
MachineConfigFieldCustomConfig = "customConfig"
MachineConfigFieldDescription = "description"
MachineConfigFieldDisplayName = "displayName"
MachineConfigFieldLabels = "labels"
@@ -15,6 +16,7 @@ const (
type MachineConfig struct {
Annotations map[string]string `json:"annotations,omitempty"`
CustomConfig *CustomConfig `json:"customConfig,omitempty"`
Description string `json:"description,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Labels map[string]string `json:"labels,omitempty"`

View File

@@ -3,6 +3,7 @@ package client
const (
MachineSpecType = "machineSpec"
MachineSpecFieldClusterId = "clusterId"
MachineSpecFieldCustomConfig = "customConfig"
MachineSpecFieldDescription = "description"
MachineSpecFieldDisplayName = "displayName"
MachineSpecFieldMachineTemplateId = "machineTemplateId"
@@ -16,15 +17,16 @@ const (
)
type MachineSpec struct {
ClusterId string `json:"clusterId,omitempty"`
Description string `json:"description,omitempty"`
DisplayName string `json:"displayName,omitempty"`
MachineTemplateId string `json:"machineTemplateId,omitempty"`
PodCidr string `json:"podCidr,omitempty"`
ProviderId string `json:"providerId,omitempty"`
RequestedHostname string `json:"requestedHostname,omitempty"`
Role []string `json:"role,omitempty"`
Taints []Taint `json:"taints,omitempty"`
Unschedulable *bool `json:"unschedulable,omitempty"`
UseInternalIPAddress *bool `json:"useInternalIpAddress,omitempty"`
ClusterId string `json:"clusterId,omitempty"`
CustomConfig *CustomConfig `json:"customConfig,omitempty"`
Description string `json:"description,omitempty"`
DisplayName string `json:"displayName,omitempty"`
MachineTemplateId string `json:"machineTemplateId,omitempty"`
PodCidr string `json:"podCidr,omitempty"`
ProviderId string `json:"providerId,omitempty"`
RequestedHostname string `json:"requestedHostname,omitempty"`
Role []string `json:"role,omitempty"`
Taints []Taint `json:"taints,omitempty"`
Unschedulable *bool `json:"unschedulable,omitempty"`
UseInternalIPAddress *bool `json:"useInternalIpAddress,omitempty"`
}