Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultAgentName = "agentpool1"
)
### [ Constants to Azure cluster default values ] ### //
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateClusterAKS ¶
type CreateClusterAKS struct { ResourceGroup string `json:"resourceGroup" yaml:"resourceGroup"` KubernetesVersion string `json:"kubernetesVersion" yaml:"kubernetesVersion"` NodePools map[string]*NodePoolCreate `json:"nodePools,omitempty" yaml:"nodePools,omitempty"` }
CreateClusterAKS describes Azure fields of a CreateCluster request
func (*CreateClusterAKS) Validate ¶
func (azure *CreateClusterAKS) Validate() error
Validate validates aks cluster create request
type NodePoolCreate ¶
type NodePoolCreate struct { Autoscaling bool `json:"autoscaling" yaml:"autoscaling"` MinCount int `json:"minCount" yaml:"minCount"` MaxCount int `json:"maxCount" yaml:"maxCount"` Count int `json:"count" yaml:"count"` NodeInstanceType string `json:"instanceType" yaml:"instanceType"` VNetSubnetID string `json:"vnetSubnetID,omitempty" yaml:"vnetSubnetID,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` }
NodePoolCreate describes Azure's node fields of a CreateCluster request
type NodePoolUpdate ¶
type NodePoolUpdate struct { Autoscaling bool `json:"autoscaling"` MinCount int `json:"minCount"` MaxCount int `json:"maxCount"` Count int `json:"count"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` }
NodePoolUpdate describes Azure's node count of a UpdateCluster request
type UpdateClusterAzure ¶
type UpdateClusterAzure struct {
NodePools map[string]*NodePoolUpdate `json:"nodePools,omitempty"`
}
UpdateClusterAzure describes Azure's node fields of an UpdateCluster request
func (*UpdateClusterAzure) Validate ¶
func (a *UpdateClusterAzure) Validate() error
Validate validates the update request (only aks part). If any of the fields is missing, the method fills with stored data.
Click to show internal directories.
Click to hide internal directories.