Documentation ¶
Index ¶
- func CRDExists(kubeClient dynamic.Interface, name string) bool
- func ConcatonateList(list []string, delimiter string) string
- func CreateAddon(kubeClient dynamic.Interface, relativePath string, nameSuffix string) (*unstructured.Unstructured, error)
- func CreateCRD(kubeClient apiextcs.Interface, relativePath string) error
- func CreateLoadTestsAddon(lock *sync.Mutex, kubeClient dynamic.Interface, relativePath string, ...) (*unstructured.Unstructured, error)
- func DeleteAddon(kubeClient dynamic.Interface, relativePath string) (*unstructured.Unstructured, error)
- func DeleteCRD(kubeClient apiextcs.Interface, relativePath string) error
- func KubectlApply(manifestRelativePath string) error
- func ParseCustomResourceYaml(raw string) (*unstructured.Unstructured, error)
- func PathToOSFile(relativPath string) (*os.File, error)
- func ReadFile(path string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatonateList ¶
ConcatonateList joins lists to strings delimited with `delimiter`
func CreateAddon ¶
func CreateAddon(kubeClient dynamic.Interface, relativePath string, nameSuffix string) (*unstructured.Unstructured, error)
CreateAddon parses the raw data from the path into an Unstructured object (Addon) and submits and returns that object
func CreateLoadTestsAddon ¶ added in v0.5.0
func CreateLoadTestsAddon(lock *sync.Mutex, kubeClient dynamic.Interface, relativePath string, nameSuffix string) (*unstructured.Unstructured, error)
func DeleteAddon ¶
func DeleteAddon(kubeClient dynamic.Interface, relativePath string) (*unstructured.Unstructured, error)
DeleteAddon deletes the Addon using the name and namespace parsed from the raw data at the given path
func KubectlApply ¶
KubectlApply runs 'kubectl apply -f <path>' with the given path
func ParseCustomResourceYaml ¶
func ParseCustomResourceYaml(raw string) (*unstructured.Unstructured, error)
ParseCustomResourceYaml parsed the YAMl for a CRD into an Unstructured object
func PathToOSFile ¶
PathToOSFile takes a relatice path and returns the full path on the OS
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.