cloud

package
v0.0.0-...-105ea73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNodeCount   = 2
	DefaultMasterCount = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sClusterAdapter

type K8sClusterAdapter struct {
	// contains filtered or unexported fields
}

K8sClusterAdapter creates, updates or deletes clusters running inside cloud providers

func NewK8sClusterAdapter

func NewK8sClusterAdapter(spec *models.K8sProvisionerSpec, ks KopsSupporter, workdir string) *K8sClusterAdapter

NewK8sClusterAdapter returns a new K8sClusterAdapter.

func (*K8sClusterAdapter) GetCluster

func (*K8sClusterAdapter) GetKubeconfig

func (k *K8sClusterAdapter) GetKubeconfig(ctx context.Context) (io.Reader, errors.Error)

func (*K8sClusterAdapter) ProvisionCluster

func (k *K8sClusterAdapter) ProvisionCluster(ctx context.Context) errors.Error

ClusterCreate uses kops to create a kubernetes cluster

type KopsSupporter

type KopsSupporter interface {
	StateStoreURL(context.Context) (*url.URL, errors.Error)
	CredentialsFile(context.Context) (string, errors.Error)
	SSHPublicKey(context.Context) (string, errors.Error)
	EnvironmentVariables(context.Context) ([]string, errors.Error)
	PlatformID() string
}

Directories

Path Synopsis
aws
gcp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL