cluster

package
v0.0.0-...-bcce8f3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTerraform

func ApplyTerraform(tp string, tf string)

func CreateCluster

func CreateCluster(project string, env string, dryrun bool, tfConfigPath string) error

TODO: pass variables into the TF template/clustervars

func DestroyCluster

func DestroyCluster(project string, env string, tfConfigPath string)

func FindIngressControllerNode

func FindIngressControllerNode() string

func GetAllPublicIps

func GetAllPublicIps() []string

func GetInternalIpsForNodes

func GetInternalIpsForNodes() []string

func InitTerraform

func InitTerraform(tf string, project string, env string)

func InstallHelm

func InstallHelm()

func NewGcpProvider

func NewGcpProvider(projectId string, keyLocation string, gkeCluster GkeCluster) *gcpProvider

func PlanTerraform

func PlanTerraform(tp string, tf string)

func ProviderSetup

func ProviderSetup()

func SetupProvider

func SetupProvider(providerValue string, zone string, clusterName string, project string,
	keyLocation string, dryRunFlag bool)

func ValidateTFVars

func ValidateTFVars(tfPath string) (string, string)

Types

type GkeCluster

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

type GkeClusterActions

type GkeClusterActions interface {
	UpdateDnsFromClusterIps(subdomains []string) error
}

func NewGkeClusterService

func NewGkeClusterService(deployer deploy.Deployer, dnsService gcp.DNSService, domainName string,
	gcpProject string, env string) GkeClusterActions

TODO: group domainName, gcpProject, env in one object

type Provider

type Provider interface {
	Setup()
	ClusterSetup()
}

type ProviderFactory

type ProviderFactory struct {
}

Jump to

Keyboard shortcuts

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