mirror of
https://github.com/rancher/types.git
synced 2025-08-02 05:11:59 +00:00
Generated code for k3s config types
This commit is contained in:
parent
961aac3e74
commit
1c5d0bee5a
@ -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
|
||||
|
@ -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"`
|
||||
|
@ -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"`
|
||||
|
14
client/management/v3/zz_generated_k3s_config.go
Normal file
14
client/management/v3/zz_generated_k3s_config.go
Normal file
@ -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"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user