From 12307ed273a886c52d9f9271e28e0deabb4cf772 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Tue, 16 Jan 2018 18:05:57 -0700 Subject: [PATCH] Make some GKE fields required --- apis/management.cattle.io/v3/cluster_types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apis/management.cattle.io/v3/cluster_types.go b/apis/management.cattle.io/v3/cluster_types.go index 4d532cfa..34c507d1 100644 --- a/apis/management.cattle.io/v3/cluster_types.go +++ b/apis/management.cattle.io/v3/cluster_types.go @@ -94,15 +94,15 @@ type ClusterCondition struct { type GoogleKubernetesEngineConfig struct { // ProjectID is the ID of your project to use when creating a cluster - ProjectID string `json:"projectId,omitempty"` + ProjectID string `json:"projectId,omitempty" norman:"required"` // The zone to launch the cluster - Zone string `json:"zone,omitempty"` + Zone string `json:"zone,omitempty" norman:"required"` // The IP address range of the container pods ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"` // An optional description of this cluster Description string `json:"description,omitempty"` // The number of nodes in this cluster - NodeCount int64 `json:"nodeCount,omitempty"` + NodeCount int64 `json:"nodeCount,omitempty" norman:"required"` // Size of the disk attached to each node DiskSizeGb int64 `json:"diskSizeGb,omitempty"` // The name of a Google Compute Engine @@ -115,7 +115,7 @@ type GoogleKubernetesEngineConfig struct { // to each node. Labels map[string]string `json:"labels,omitempty"` // The content of the credential file(key.json) - Credential string `json:"credential,omitempty"` + Credential string `json:"credential,omitempty" norman:"required"` // Enable alpha feature EnableAlphaFeature bool `json:"enableAlphaFeature,omitempty"` // Configuration for the HTTP (L7) load balancing controller addon