1
0
mirror of https://github.com/rancher/types.git synced 2025-09-25 12:21:24 +00:00

Make some GKE fields required

This commit is contained in:
Darren Shepherd
2018-01-16 18:05:57 -07:00
parent 168d42bbcf
commit 12307ed273

View File

@@ -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