Documentation ¶
Index ¶
- func DeleteEmpty(s []string) []string
- func FindGVR(gvk *schema.GroupVersionKind, cfg *rest.Config) (*meta.RESTMapping, error)
- func GetResourceFromYaml(path string, config *rest.Config, args *TemplateArguments) (*meta.RESTMapping, *unstructured.Unstructured, error)
- func IsNodeReady(n corev1.Node) bool
- func PathToOSFile(relativePath string) (*os.File, error)
- type TemplateArguments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEmpty ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.