testutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApplication

func CreateApplication(kubeClient client.Client, ns string, relativePath string) error

CreateApplication - create application object

func CreateOrUpdateCRD

func CreateOrUpdateCRD(kubeClient apiextcs.Interface, crd *apiextensions.CustomResourceDefinition) error

CreateOrUpdateCRD - create or update application CRD

func DeleteApplication

func DeleteApplication(kubeClient client.Client, ns string, relativePath string) error

DeleteApplication - delete application object

func DeleteCRD

func DeleteCRD(kubeClient apiextcs.Interface, crdName string) error

DeleteCRD - Delete CRD from cluster

func ParseCRDYaml

func ParseCRDYaml(relativePath string) (*apiextensions.CustomResourceDefinition, error)

ParseCRDYaml - load crd from file

func PathToOSFile

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

func WaitForCRDOrDie

func WaitForCRDOrDie(kubeClient apiextcs.Interface, name string) error

WaitForCRDOrDie - wait for CRD conditions to be set

Types

This section is empty.

Jump to

Keyboard shortcuts

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