Documentation
¶
Overview ¶
Package gcp provisions GKE clusters and GCS buckets for the gcp target.
Index ¶
- func CreateBucket(ctx context.Context, project, name, location string) error
- func CreateGKE(ctx context.Context, s ClusterSpec) error
- func DeleteBucket(ctx context.Context, name string) error
- func DeleteGKE(ctx context.Context, s ClusterSpec) error
- func RESTConfig(ctx context.Context, s ClusterSpec) (*rest.Config, error)
- type ClusterSpec
- type HMACKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucket ¶
CreateBucket creates a GCS bucket, treating "already exists" as success.
func CreateGKE ¶
func CreateGKE(ctx context.Context, s ClusterSpec) error
CreateGKE creates a regional autoscaling cluster and waits for it to finish.
func DeleteBucket ¶
DeleteBucket empties and deletes a bucket, ignoring "not found".
func DeleteGKE ¶
func DeleteGKE(ctx context.Context, s ClusterSpec) error
DeleteGKE deletes the cluster and waits for completion.
func RESTConfig ¶
RESTConfig builds a client-go config for the cluster's API server using application-default credentials for the bearer token.
Types ¶
type ClusterSpec ¶
type ClusterSpec struct {
Project string
Region string
Name string
Nodes int32
MinNodes int32
MaxNodes int32
MachineType string
}
ClusterSpec describes the GKE cluster to create.
Click to show internal directories.
Click to hide internal directories.