Documentation ¶
Index ¶
- func CreateGKECluster(gcpConfig *GcpConfig) error
- func DeleteGKECluster(gcpConfig *GcpConfig) error
- func GetVolumeMountPoints(volumeMount string) (string, string)
- func HelpGKECluster() error
- func ReadYAMLFile(filePath string, cfg *GcpConfig) error
- func ValidateConfigFile(config *GcpConfig) error
- type Cluster
- type Credentials
- type GcpConfig
- type Metadata
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGKECluster ¶
CreateGKECluster creates the GKE cluster
func DeleteGKECluster ¶
DeleteGKECluster deletes the GKE cluster
func GetVolumeMountPoints ¶
GetVolumeMountPoints extracts the source and destination of a volume mount
func HelpGKECluster ¶
func HelpGKECluster() error
HelpGKECluster returns the help.txt for the GKE cluster
func ReadYAMLFile ¶
ReadYAMLFile reads YAML-formatted configuration file and de-serializes it to a given object
func ValidateConfigFile ¶
ValidateConfigFile validates GCP configuration file for the Ephemeral Cluster
Types ¶
type Cluster ¶
type Cluster struct { // Kubernetes version to deploy K8SVersion string `yaml:"k8sVersion,omitempty"` // Google Cloud Compote VM size to use for the cluster MachineSize string `yaml:"machineSize,omitempty"` // Google Cloud Compote disk size to use for the cluster DiskSize uint8 `yaml:"diskSize,omitempty" validate:"gte=1"` // Number of nodes to deploy for the cluster Replicas uint8 `yaml:"replicas,omitempty" validate:"gte=1,lte=100"` // Kubeconfig filename to save Kubeconfig string `yaml:"kubeconfig,omitempty"` }
Cluster struct provides data for the k8s cluster to deploy
type Credentials ¶
type Credentials struct { Project string `yaml:"project" validate:"required"` Account string `yaml:"account" validate:"required"` Credential string `yaml:"credential" validate:"required"` }
Credentials structu provides the credentials to authenticate with Azure Cloud
type GcpConfig ¶
type GcpConfig struct { // +optional Kind string `yaml:"kind" validate:"required"` // +optional APIVersion string `yaml:"apiVersion" validate:"required"` // Configuration parameters for metadata Metadata *Metadata `yaml:"metadata" validate:"required"` // Configuration parameters for metadata Credentials *Credentials `yaml:"credentials" validate:"required"` // Configuration parameters for spec Spec *Spec `yaml:"spec"` }
GcpConfig holds configurations for bootstrap steps
Click to show internal directories.
Click to hide internal directories.