Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteEmpty

func DeleteEmpty(s []string) []string

func FindGVR

func FindGVR(gvk *schema.GroupVersionKind, cfg *rest.Config) (*meta.RESTMapping, error)

find the corresponding GVR (available in *meta.RESTMapping) for gvk

func GetResourceFromYaml

func GetResourceFromYaml(path string, config *rest.Config, args *TemplateArguments) (*meta.RESTMapping, *unstructured.Unstructured, error)

func IsNodeReady

func IsNodeReady(n corev1.Node) bool

func PathToOSFile

func PathToOSFile(relativePath string) (*os.File, error)

Types

type TemplateArguments

type TemplateArguments struct {
	ClusterName        string
	KeyPairName        string
	AmiID              string
	NodeRole           string
	NodeRoleArn        string
	NodeSecurityGroups []string
	Subnets            []string
}

func NewTemplateArguments

func NewTemplateArguments() *TemplateArguments

Source Files