1
0
mirror of https://github.com/rancher/types.git synced 2025-06-27 05:56:50 +00:00

ClusterTemplate remove Enabled, readonly on Cluster

This commit is contained in:
Prachi Damle 2019-07-06 01:02:02 -07:00 committed by Alena Prokharchyk
parent 7c47f85c08
commit cc27d74d83
2 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ type ClusterTemplate struct {
type ClusterTemplateSpec struct {
DisplayName string `json:"displayName" norman:"required"`
Description string `json:"description"`
Enabled *bool `json:"enabled,omitempty" norman:"default=true"`
Enforced bool `json:"enforced,omitempty"`
DefaultRevisionName string `json:"defaultRevisionName,omitempty" norman:"type=reference[clusterTemplateRevision]"`

View File

@ -108,7 +108,7 @@ type ClusterSpec struct {
AzureKubernetesServiceConfig *MapStringInterface `json:"azureKubernetesServiceConfig,omitempty"`
AmazonElasticContainerServiceConfig *MapStringInterface `json:"amazonElasticContainerServiceConfig,omitempty"`
GenericEngineConfig *MapStringInterface `json:"genericEngineConfig,omitempty"`
ClusterTemplateName string `json:"clusterTemplateName,omitempty" norman:"type=reference[clusterTemplate]"`
ClusterTemplateName string `json:"clusterTemplateName,omitempty" norman:"type=reference[clusterTemplate],nocreate,noupdate"`
ClusterTemplateRevisionName string `json:"clusterTemplateRevisionName,omitempty" norman:"type=reference[clusterTemplateRevision]"`
ClusterTemplateAnswers Answer `json:"answers,omitempty"`
}