Documentation ¶
Index ¶
- func CreateAKSCluster(config *AzureConfig) error
- func DeleteAKSCluster(config *AzureConfig) error
- func GetVolumeMountPoints(volumeMount string) (string, string)
- func HelpAKSCluster() error
- func ReadYAMLFile(filePath string, cfg *AzureConfig) error
- func ReadYAMLtoJSON(filePath string) (string, error)
- func ValidateConfigFile(config *AzureConfig) error
- type AzureConfig
- type Cluster
- type Credentials
- type Metadata
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAKSCluster ¶
func CreateAKSCluster(config *AzureConfig) error
CreateAKSCluster creates the AKS cluster
func DeleteAKSCluster ¶
func DeleteAKSCluster(config *AzureConfig) error
DeleteAKSCluster deletes the AKS cluster
func GetVolumeMountPoints ¶
GetVolumeMountPoints extracts the source and destination of a volume mount
func HelpAKSCluster ¶
func HelpAKSCluster() error
HelpAKSCluster returns the help.txt for the AKS cluster
func ReadYAMLFile ¶
func ReadYAMLFile(filePath string, cfg *AzureConfig) error
ReadYAMLFile reads YAML-formatted configuration file and de-serializes it to a given object
func ReadYAMLtoJSON ¶
ReadYAMLtoJSON reads YAML-formatted configuration file and de-serializes it to a given object
func ValidateConfigFile ¶
func ValidateConfigFile(config *AzureConfig) error
ValidateConfigFile validates Azure configuration file for the Ephemeral Cluster
Types ¶
type AzureConfig ¶
type AzureConfig struct { // +optional Kind string `json:"kind" validate:"required"` // +optional APIVersion string `json:"apiVersion" validate:"required"` // Configuration parameters for metadata Metadata *Metadata `json:"metadata"` // Configuration parameters for metadata Credentials *Credentials `json:"credentials" validate:"required"` // Configuration parameters for spec Spec *Spec `json:"spec"` }
AzureConfig holds configurations for bootstrap steps
type Cluster ¶
type Cluster struct { // Kubernetes version to deploy K8SVersion string `json:"k8sVersion,omitempty"` // Azure VM size to use for the cluster VMSize string `json:"vmSize,omitempty"` // Number of nodes to deploy for the cluster Replicas uint8 `json:"replicas,omitempty" validate:"gte=1,lte=100"` // Kubeconfig filename to save Kubeconfig string `json:"kubeconfig,omitempty"` }
Cluster struct provides data for the k8s cluster to deploy
type Credentials ¶
type Credentials struct { Tenant string `json:"tenant" validate:"required"` Client string `json:"client" validate:"required"` Secret string `json:"secret" validate:"required"` }
Credentials structu provides the credentials to authenticate with Azure Cloud