Documentation
¶
Index ¶
- Constants
- func ConvertConditionsToString(condition metav1.Condition) string
- func GetProjectDir() (string, error)
- func Run(cmd *exec.Cmd) ([]byte, error)
- func ValidateConditionsTrue(unstrObj *unstructured.Unstructured) error
- func ValidateObjectNamePrefix(obj *unstructured.Unstructured, prefix string) error
- func WarnError(err error)
Constants ¶
View Source
const (
KCMControllerLabel = "app.kubernetes.io/name=kcm"
)
Variables ¶
This section is empty.
Functions ¶
func GetProjectDir ¶
GetProjectDir will return the directory where the project is
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(obj *unstructured.Unstructured, prefix string) error
ValidateObjectNamePrefix checks if the given object name has the given prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.