Interface OpenShiftAdapter
- All Superinterfaces:
AutoCloseable,Closeable,OpenShiftHandle
- All Known Implementing Classes:
AbstractOpenShiftAdapter,F8OpenShiftAdapter
- Author:
- Ales Justin
-
Method Summary
Modifier and TypeMethodDescriptionaddRoleBinding(String resourcesKey, String roleRefName, String userName) booleanvoidvoidcleanRemnants(Map<String, String> labels) voidcleanReplicationControllers(String... ids) createResource(String resourcesKey, InputStream stream) voidbooleandeleteResources(String resourcesKey) deleteTemplate(String templateKey) deployReplicationController(String name, String env, RCContext context) getProxy()getService(String namespace, String serviceName) List<? extends OpenShiftResource>processTemplateAndCreateResources(String templateKey, String templateURL, List<ParamValue> values, Map<String, String> labels) Methods inherited from interface org.arquillian.cube.openshift.api.OpenShiftHandle
deletePod, exec, execute, execute, execute, getLog, getLog, getPods, getPods, getReadyPods, jolokia, replacePods, scaleDeployment, streamLog, triggerDeploymentConfigUpdate, triggerDeploymentConfigUpdate, url, waitForReadyPods
-
Method Details
-
getProxy
Proxy getProxy() -
checkProject
boolean checkProject()- Returns:
- true if the project was created; false if the project already exists
-
deleteProject
boolean deleteProject() -
deployPod
- Throws:
Exception
-
deployReplicationController
- Throws:
Exception
-
processTemplateAndCreateResources
List<? extends OpenShiftResource> processTemplateAndCreateResources(String templateKey, String templateURL, List<ParamValue> values, Map<String, String> labels) throws Exception- Throws:
Exception
-
deleteTemplate
- Throws:
Exception
-
createResource
- Throws:
IOException
-
deleteResources
-
addRoleBinding
-
getService
-
cleanReplicationControllers
- Throws:
Exception
-
cleanPods
- Throws:
Exception
-
delay
- Parameters:
op- compare current number of pods vs. replicas- Throws:
Exception
-
cleanRemnants
- Throws:
Exception
-