testutil

package
v0.0.0-...-3d4b6db Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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

Jump to

Keyboard shortcuts

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