Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultNodePoolName = "default-pool"
)
### [ Constants to Google cluster default values ] ### //
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateClusterGKE ¶
type CreateClusterGKE struct { NodeVersion string `json:"nodeVersion,omitempty" yaml:"nodeVersion,omitempty"` NodePools map[string]*NodePool `json:"nodePools,omitempty" yaml:"nodePools,omitempty"` Master *Master `json:"master,omitempty" yaml:"master,omitempty"` Vpc string `json:"vpc,omitempty" yaml:"vpc,omitempty"` Subnet string `json:"subnet,omitempty" yaml:"subnet,omitempty"` ProjectId string `json:"projectId" yaml:"projectId"` }
CreateClusterGKE describes Pipeline's Google fields of a CreateCluster request
func (*CreateClusterGKE) Validate ¶
func (g *CreateClusterGKE) Validate() error
Validate validates Google cluster create request
type Master ¶
type Master struct {
Version string `json:"version"`
}
Master describes Google's master fields of a CreateCluster request
type NodePool ¶
type NodePool struct { Autoscaling bool `json:"autoscaling" yaml:"autoscaling"` MinCount int `json:"minCount" yaml:"minCount"` MaxCount int `json:"maxCount" yaml:"maxCount"` Count int `json:"count,omitempty" yaml:"count,omitempty"` NodeInstanceType string `json:"instanceType,omitempty" yaml:"instanceType,omitempty"` Preemptible bool `json:"preemptible,omitempty" yaml:"preemptible,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` }
NodePool describes Google's node fields of a CreateCluster/Update request
type UpdateClusterGoogle ¶
type UpdateClusterGoogle struct { NodeVersion string `json:"nodeVersion,omitempty"` NodePools map[string]*NodePool `json:"nodePools,omitempty"` Master *Master `json:"master,omitempty"` }
UpdateClusterGoogle describes Google's node fields of an UpdateCluster request
func (*UpdateClusterGoogle) Validate ¶
func (a *UpdateClusterGoogle) Validate() error
Validate validates the update request (only gke part). If any of the fields is missing, the method fills with stored data.
Click to show internal directories.
Click to hide internal directories.