diff --git a/apis/management.cattle.io/v3/zz_generated_deepcopy.go b/apis/management.cattle.io/v3/zz_generated_deepcopy.go index 8b282e38..bd408e49 100644 --- a/apis/management.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/management.cattle.io/v3/zz_generated_deepcopy.go @@ -2224,6 +2224,11 @@ func (in *ClusterScanStatus) DeepCopy() *ClusterScanStatus { func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { *out = *in in.ClusterSpecBase.DeepCopyInto(&out.ClusterSpecBase) + if in.K3sConfig != nil { + in, out := &in.K3sConfig, &out.K3sConfig + *out = new(K3sConfig) + (*in).DeepCopyInto(*out) + } if in.ImportedConfig != nil { in, out := &in.ImportedConfig, &out.ImportedConfig *out = new(ImportedConfig) @@ -4516,6 +4521,44 @@ func (in *IngressConfig) DeepCopy() *IngressConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *K3sConfig) DeepCopyInto(out *K3sConfig) { + *out = *in + if in.Version != nil { + in, out := &in.Version, &out.Version + *out = new(version.Info) + **out = **in + } + out.K3sUpgradeStrategy = in.K3sUpgradeStrategy + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3sConfig. +func (in *K3sConfig) DeepCopy() *K3sConfig { + if in == nil { + return nil + } + out := new(K3sConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *K3sUpgradeStrategy) DeepCopyInto(out *K3sUpgradeStrategy) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3sUpgradeStrategy. +func (in *K3sUpgradeStrategy) DeepCopy() *K3sUpgradeStrategy { + if in == nil { + return nil + } + out := new(K3sUpgradeStrategy) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *K8sVersionInfo) DeepCopyInto(out *K8sVersionInfo) { *out = *in diff --git a/client/management/v3/zz_generated_cluster.go b/client/management/v3/zz_generated_cluster.go index 15470bd0..91acce44 100644 --- a/client/management/v3/zz_generated_cluster.go +++ b/client/management/v3/zz_generated_cluster.go @@ -42,6 +42,7 @@ const ( ClusterFieldImportedConfig = "importedConfig" ClusterFieldInternal = "internal" ClusterFieldIstioEnabled = "istioEnabled" + ClusterFieldK3sConfig = "k3sConfig" ClusterFieldLabels = "labels" ClusterFieldLimits = "limits" ClusterFieldLocalClusterAuthEndpoint = "localClusterAuthEndpoint" @@ -99,6 +100,7 @@ type Cluster struct { ImportedConfig *ImportedConfig `json:"importedConfig,omitempty" yaml:"importedConfig,omitempty"` Internal bool `json:"internal,omitempty" yaml:"internal,omitempty"` IstioEnabled bool `json:"istioEnabled,omitempty" yaml:"istioEnabled,omitempty"` + K3sConfig *K3sConfig `json:"k3sConfig,omitempty" yaml:"k3sConfig,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"` LocalClusterAuthEndpoint *LocalClusterAuthEndpoint `json:"localClusterAuthEndpoint,omitempty" yaml:"localClusterAuthEndpoint,omitempty"` diff --git a/client/management/v3/zz_generated_cluster_spec.go b/client/management/v3/zz_generated_cluster_spec.go index 5f8dc322..af95fc1c 100644 --- a/client/management/v3/zz_generated_cluster_spec.go +++ b/client/management/v3/zz_generated_cluster_spec.go @@ -23,6 +23,7 @@ const ( ClusterSpecFieldGoogleKubernetesEngineConfig = "googleKubernetesEngineConfig" ClusterSpecFieldImportedConfig = "importedConfig" ClusterSpecFieldInternal = "internal" + ClusterSpecFieldK3sConfig = "k3sConfig" ClusterSpecFieldLocalClusterAuthEndpoint = "localClusterAuthEndpoint" ClusterSpecFieldRancherKubernetesEngineConfig = "rancherKubernetesEngineConfig" ClusterSpecFieldScheduledClusterScan = "scheduledClusterScan" @@ -51,6 +52,7 @@ type ClusterSpec struct { GoogleKubernetesEngineConfig map[string]interface{} `json:"googleKubernetesEngineConfig,omitempty" yaml:"googleKubernetesEngineConfig,omitempty"` ImportedConfig *ImportedConfig `json:"importedConfig,omitempty" yaml:"importedConfig,omitempty"` Internal bool `json:"internal,omitempty" yaml:"internal,omitempty"` + K3sConfig *K3sConfig `json:"k3sConfig,omitempty" yaml:"k3sConfig,omitempty"` LocalClusterAuthEndpoint *LocalClusterAuthEndpoint `json:"localClusterAuthEndpoint,omitempty" yaml:"localClusterAuthEndpoint,omitempty"` RancherKubernetesEngineConfig *RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty" yaml:"rancherKubernetesEngineConfig,omitempty"` ScheduledClusterScan *ScheduledClusterScan `json:"scheduledClusterScan,omitempty" yaml:"scheduledClusterScan,omitempty"` diff --git a/client/management/v3/zz_generated_k3s_config.go b/client/management/v3/zz_generated_k3s_config.go new file mode 100644 index 00000000..0ef4056b --- /dev/null +++ b/client/management/v3/zz_generated_k3s_config.go @@ -0,0 +1,14 @@ +package client + +const ( + K3sConfigType = "k3sConfig" + K3sConfigFieldServerConcurrency = "serverConcurrency" + K3sConfigFieldVersion = "kubernetesVersion" + K3sConfigFieldWorkerConcurrency = "workerConcurrency" +) + +type K3sConfig struct { + ServerConcurrency int64 `json:"serverConcurrency,omitempty" yaml:"serverConcurrency,omitempty"` + Version *Info `json:"kubernetesVersion,omitempty" yaml:"kubernetesVersion,omitempty"` + WorkerConcurrency int64 `json:"workerConcurrency,omitempty" yaml:"workerConcurrency,omitempty"` +}