From cc27d74d83aab8336f78f8ad39b62fb79c19c3a2 Mon Sep 17 00:00:00 2001 From: Prachi Damle Date: Sat, 6 Jul 2019 01:02:02 -0700 Subject: [PATCH] ClusterTemplate remove Enabled, readonly on Cluster --- apis/management.cattle.io/v3/cluster_template_types.go | 1 - apis/management.cattle.io/v3/cluster_types.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/cluster_template_types.go b/apis/management.cattle.io/v3/cluster_template_types.go index 6d2ce822..72d14216 100644 --- a/apis/management.cattle.io/v3/cluster_template_types.go +++ b/apis/management.cattle.io/v3/cluster_template_types.go @@ -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]"` diff --git a/apis/management.cattle.io/v3/cluster_types.go b/apis/management.cattle.io/v3/cluster_types.go index 4ea4bb88..6324629f 100644 --- a/apis/management.cattle.io/v3/cluster_types.go +++ b/apis/management.cattle.io/v3/cluster_types.go @@ -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"` }