ekssetup

package module
v0.0.0-...-2a187bf Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToS3

func AddFileToS3(sess *session.Session, VPC []byte, EKS []byte, Nodes []byte, s3 string, cluster string) (error, string, string, string)

func CheckStack

func CheckStack(sess *session.Session, StackName string) *awscf.DescribeStacksOutput

func Create_Master

func Create_Master(sess *session.Session, vpcsecuritygps string, vpcclustername string, vpcsubnets string, ElementsSubnetIDs map[string]string, file []byte, cluster string, s3 string, eksfileName string) (string, string)

func Create_Node

func Create_Node(sess *session.Session, nodelen int, MClusterName string, MSubnetIds string, ElementsSubnetIDs map[string]string, f []byte, cluster string, s3 string, nodesfileName string)

func Create_VPC

func Create_VPC(sess *session.Session, file []byte, cluster string, S3 string, VPCFilename string) (string, string, string, map[string]string)

func Createcft

func Createcft(sess *session.Session, d cftvpc, stack []*awscf.Parameter) *awscf.CreateStackOutput

func ListStack

func ListStack(sess *session.Session, c cftvpc, stackcreate []*awscf.Parameter, stackupdate []*awscf.Parameter)

func ReadEKSYaml

func ReadEKSYaml(f []byte)

func UpdateStack

func UpdateStack(sess *session.Session, u cftvpc, stack []*awscf.Parameter) *awscf.UpdateStackOutput

func ValidateStack

func ValidateStack(sess *session.Session, TemplateURL string, ElementsCreate map[string]string, ElementsUpdate map[string]string) ([]*awscf.Parameter, []*awscf.Parameter)

Types

type Config

type Config struct {
	Key   string
	Value string
}

type EksMaster

type EksMaster struct {
	Master struct {
		KubernetesVersion string      `yaml:"KubernetesVersion"`
		SecurityGroupIds  string      `yaml:"SecurityGroupIds"`
		SubnetIds         interface{} `yaml:"SubnetIds"`
	} `yaml:"Master"`
}

type EksVPC

type EksVPC struct {
	VPC struct {
		VpcBlock       string                      `yaml:"VpcBlock"`
		PublicSubnets  map[interface{}]interface{} `yaml:"PublicSubnets"`
		PrivateSubnets map[interface{}]interface{} `yaml:"PrivateSubnets"`
	} `yaml:"VPC"`
}

type NodeList

type NodeList struct {
	Nodes []Nodevalues `yaml:"Nodes"`
}

type Nodevalues

type Nodevalues struct {
	NodegroupName string      `yaml:"NodegroupName"`
	InstanceTypes string      `yaml:"InstanceTypes"`
	SubnetIds     interface{} `yaml:"SubnetIds"`
}

type YamlConvert

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

Jump to

Keyboard shortcuts

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