Package io.skodjob.testframe.utils
Class KubeUtils
java.lang.Object
io.skodjob.testframe.utils.KubeUtils
Utility methods for Kubernetes and Openshift clusters.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapproveInstallPlan(String namespaceName, String installPlanName) Approve install plan in namespacestatic io.fabric8.openshift.api.model.operatorhub.v1alpha1.InstallPlangetNonApprovedInstallPlan(String namespaceName, String csvPrefix) Read not approved install-plans with prefixstatic voidlabelNamespace(String namespace, String key, String value) Apply label to namespace and wait for propagation
-
Method Details
-
approveInstallPlan
Approve install plan in namespace- Parameters:
namespaceName- namespaceinstallPlanName- install plan name
-
getNonApprovedInstallPlan
public static io.fabric8.openshift.api.model.operatorhub.v1alpha1.InstallPlan getNonApprovedInstallPlan(String namespaceName, String csvPrefix) Read not approved install-plans with prefix- Parameters:
namespaceName- namespacecsvPrefix- prefix of install plans- Returns:
- list of not approved install-plans
-
labelNamespace
Apply label to namespace and wait for propagation- Parameters:
namespace- namespace namekey- label keyvalue- label value
-