mirror of
https://github.com/rancher/types.git
synced 2025-08-01 13:07:05 +00:00
Don't drop gke/aks/eks fields
This commit is contained in:
parent
29fa023a5b
commit
26032c826c
@ -206,9 +206,6 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas {
|
||||
AddMapperForType(&Version, v3.Cluster{},
|
||||
&m.Embed{Field: "status"},
|
||||
mapper.NewDropFromSchema("genericEngineConfig"),
|
||||
mapper.NewDropFromSchema("googleKubernetesEngineConfig"),
|
||||
mapper.NewDropFromSchema("azureKubernetesServiceConfig"),
|
||||
mapper.NewDropFromSchema("amazonElasticContainerServiceConfig"),
|
||||
m.DisplayName{},
|
||||
).
|
||||
AddMapperForType(&Version, v3.ClusterStatus{},
|
||||
|
@ -11,11 +11,13 @@ const (
|
||||
ClusterFieldAgentImage = "agentImage"
|
||||
ClusterFieldAgentImageOverride = "agentImageOverride"
|
||||
ClusterFieldAllocatable = "allocatable"
|
||||
ClusterFieldAmazonElasticContainerServiceConfig = "amazonElasticContainerServiceConfig"
|
||||
ClusterFieldAnnotations = "annotations"
|
||||
ClusterFieldAppliedEnableNetworkPolicy = "appliedEnableNetworkPolicy"
|
||||
ClusterFieldAppliedPodSecurityPolicyTemplateName = "appliedPodSecurityPolicyTemplateId"
|
||||
ClusterFieldAppliedSpec = "appliedSpec"
|
||||
ClusterFieldAuthImage = "authImage"
|
||||
ClusterFieldAzureKubernetesServiceConfig = "azureKubernetesServiceConfig"
|
||||
ClusterFieldCACert = "caCert"
|
||||
ClusterFieldCapabilities = "capabilities"
|
||||
ClusterFieldCapacity = "capacity"
|
||||
@ -40,6 +42,7 @@ const (
|
||||
ClusterFieldEnableClusterMonitoring = "enableClusterMonitoring"
|
||||
ClusterFieldEnableNetworkPolicy = "enableNetworkPolicy"
|
||||
ClusterFieldFailedSpec = "failedSpec"
|
||||
ClusterFieldGoogleKubernetesEngineConfig = "googleKubernetesEngineConfig"
|
||||
ClusterFieldImportedConfig = "importedConfig"
|
||||
ClusterFieldInternal = "internal"
|
||||
ClusterFieldIstioEnabled = "istioEnabled"
|
||||
@ -72,11 +75,13 @@ type Cluster struct {
|
||||
AgentImage string `json:"agentImage,omitempty" yaml:"agentImage,omitempty"`
|
||||
AgentImageOverride string `json:"agentImageOverride,omitempty" yaml:"agentImageOverride,omitempty"`
|
||||
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
|
||||
AmazonElasticContainerServiceConfig map[string]interface{} `json:"amazonElasticContainerServiceConfig,omitempty" yaml:"amazonElasticContainerServiceConfig,omitempty"`
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
AppliedEnableNetworkPolicy bool `json:"appliedEnableNetworkPolicy,omitempty" yaml:"appliedEnableNetworkPolicy,omitempty"`
|
||||
AppliedPodSecurityPolicyTemplateName string `json:"appliedPodSecurityPolicyTemplateId,omitempty" yaml:"appliedPodSecurityPolicyTemplateId,omitempty"`
|
||||
AppliedSpec *ClusterSpec `json:"appliedSpec,omitempty" yaml:"appliedSpec,omitempty"`
|
||||
AuthImage string `json:"authImage,omitempty" yaml:"authImage,omitempty"`
|
||||
AzureKubernetesServiceConfig map[string]interface{} `json:"azureKubernetesServiceConfig,omitempty" yaml:"azureKubernetesServiceConfig,omitempty"`
|
||||
CACert string `json:"caCert,omitempty" yaml:"caCert,omitempty"`
|
||||
Capabilities *Capabilities `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`
|
||||
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
|
||||
@ -101,6 +106,7 @@ type Cluster struct {
|
||||
EnableClusterMonitoring bool `json:"enableClusterMonitoring,omitempty" yaml:"enableClusterMonitoring,omitempty"`
|
||||
EnableNetworkPolicy *bool `json:"enableNetworkPolicy,omitempty" yaml:"enableNetworkPolicy,omitempty"`
|
||||
FailedSpec *ClusterSpec `json:"failedSpec,omitempty" yaml:"failedSpec,omitempty"`
|
||||
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"`
|
||||
IstioEnabled bool `json:"istioEnabled,omitempty" yaml:"istioEnabled,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user