Documentation
¶
Index ¶
- func CreateObjectShouldSucceed(c client.Client, obj client.Object)
- func DeleteObjectShouldSucceed(c client.Client, obj client.Object)
- func GetObjectShouldSucceed(c client.Client, name, namespace string, obj client.Object)
- func GetPodEnvVariable(c client.Client, envVarName string, labelSelector client.MatchingLabels) (string, string, error)
- func ObjectShouldNotExist(c client.Client, name, namespace string, obj client.Object, ...)
- func UpdateObjectShouldSucceed(c client.Client, obj client.Object)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateObjectShouldSucceed ¶
CreateObjectShouldSucceed creates the given object and ensures it succeeds
func DeleteObjectShouldSucceed ¶
DeleteObjectShouldSucceed deletes the given object and ensures it succeeds
func GetObjectShouldSucceed ¶
GetObjectShouldSucceed gets the object identified by name and namespace and ensures it succeeds
func GetPodEnvVariable ¶
func GetPodEnvVariable(c client.Client, envVarName string, labelSelector client.MatchingLabels) (string, string, error)
GetPodEnvVariable returns the value of the given env variable in the first container of the first pod that matches the given labelSelector. Returns the pod name, the value of the env variable and error (if any). Returns a NotFound error in case of not finding any matching pod or if the first pod has no containers. Returns the value of the env variable or "unset" if it was not found in the container.
func ObjectShouldNotExist ¶
func ObjectShouldNotExist(c client.Client, name, namespace string, obj client.Object, checkConsistently bool)
ObjectShouldNotExist checks the object identified with name and namespace does not exist. If checkConsistently is set to true it checks consistently for 5 seconds, otherwise it runs a single check
Types ¶
This section is empty.