Documentation ¶
Index ¶
- Constants
- func ConvertConditionsToString(condition metav1.Condition) string
- func GetNonEmptyLines(output string) []string
- func GetProjectDir() (string, error)
- func LoadImageToKindClusterWithName(name string) error
- func Run(cmd *exec.Cmd) ([]byte, error)
- func ValidateConditionsTrue(unstrObj *unstructured.Unstructured) error
- func ValidateObjectNamePrefix(unstrObj *unstructured.Unstructured, clusterName string) error
- func WarnError(err error)
Constants ¶
const (
KCMControllerLabel = "app.kubernetes.io/name=kcm"
)
Variables ¶
This section is empty.
Functions ¶
func GetNonEmptyLines ¶
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
func GetProjectDir ¶
GetProjectDir will return the directory where the project is
func LoadImageToKindClusterWithName ¶
LoadImageToKindClusterWithName loads a local docker image to the kind cluster
func Run ¶
Run executes the provided command within this context and returns it's output. Run does not wait for the command to finish, use Wait instead.
func ValidateConditionsTrue ¶
func ValidateConditionsTrue(unstrObj *unstructured.Unstructured) error
ValidateConditionsTrue iterates over the conditions of the given unstructured object and returns an error if any of the conditions are not true. Conditions are expected to be of type metav1.Condition.
func ValidateObjectNamePrefix ¶
func ValidateObjectNamePrefix(unstrObj *unstructured.Unstructured, clusterName string) error
ValidateObjectNamePrefix checks if the given object name has the given prefix.
Types ¶
This section is empty.