Class F8OpenShiftAdapter
java.lang.Object
org.arquillian.cube.openshift.impl.adapter.AbstractOpenShiftAdapter
org.arquillian.cube.openshift.impl.fabric8.F8OpenShiftAdapter
- All Implemented Interfaces:
Closeable,AutoCloseable,OpenShiftHandle,OpenShiftAdapter
- Author:
- Ales Justin
-
Field Summary
Fields inherited from class org.arquillian.cube.openshift.impl.adapter.AbstractOpenShiftAdapter
configuration, log -
Constructor Summary
ConstructorsConstructorDescriptionF8OpenShiftAdapter(io.fabric8.openshift.client.NamespacedOpenShiftClient client, CubeOpenShiftConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidcleanRemnants(Map<String, String> labels) voidcleanReplicationControllers(String... ids) voidcleanServices(String... ids) voidclose()protected Proxyprotected OpenShiftResourceHandlecreateResourceFromStream(InputStream stream) protected OpenShiftResourceHandlecreateRoleBinding(String roleRefName, String userName) voidbooleandeleteTemplate(String templateKey) deployReplicationController(String name, String env, RCContext context) io.fabric8.kubernetes.api.model.ServicegetService(String namespace, String serviceName) List<? extends OpenShiftResource>processTemplateAndCreateResources(String templateKey, String templateURL, List<ParamValue> values, Map<String, String> labels) voidscaleDeployment(String prefix, int replicas) voidtriggerDeploymentConfigUpdate(String prefix, boolean wait) voidtriggerDeploymentConfigUpdate(String prefix, boolean wait, Map<String, String> variables) Methods inherited from class org.arquillian.cube.openshift.impl.adapter.AbstractOpenShiftAdapter
addRoleBinding, createResource, delay, deleteResources, execute, execute, execute, getPods, getProxy, getReadyPods, jolokia, replacePods, setProtocolMetaData, url, waitForReadyPods
-
Constructor Details
-
F8OpenShiftAdapter
public F8OpenShiftAdapter(io.fabric8.openshift.client.NamespacedOpenShiftClient client, CubeOpenShiftConfiguration configuration)
-
-
Method Details
-
exec
- Throws:
Exception
-
createProxy
- Specified by:
createProxyin classAbstractOpenShiftAdapter
-
checkProject
public boolean checkProject()- Returns:
- true if the project was created; false if the project already exists
-
deleteProject
public boolean deleteProject() -
deletePod
-
triggerDeploymentConfigUpdate
public void triggerDeploymentConfigUpdate(String prefix, boolean wait, Map<String, String> variables) throws Exception- Throws:
Exception
-
triggerDeploymentConfigUpdate
- Throws:
Exception
-
deployPod
- Throws:
Exception
-
deployReplicationController
public String deployReplicationController(String name, String env, RCContext context) throws Exception - Throws:
Exception
-
processTemplateAndCreateResources
public List<? extends OpenShiftResource> processTemplateAndCreateResources(String templateKey, String templateURL, List<ParamValue> values, Map<String, String> labels) throws Exception- Throws:
Exception
-
createResourceFromStream
- Specified by:
createResourceFromStreamin classAbstractOpenShiftAdapter- Throws:
IOException
-
deleteTemplate
-
createRoleBinding
- Specified by:
createRoleBindingin classAbstractOpenShiftAdapter
-
getService
-
getLabels
- Specified by:
getLabelsin classAbstractOpenShiftAdapter- Throws:
Exception
-
scaleDeployment
- Throws:
Exception
-
getPods
- Throws:
Exception
-
getLog
- Throws:
Exception
-
streamLog
- Throws:
Exception
-
getLog
- Throws:
Exception
-
cleanServices
- Throws:
Exception
-
cleanReplicationControllers
- Throws:
Exception
-
cleanPods
- Throws:
Exception
-
cleanRemnants
- Throws:
Exception
-
close
- Throws:
IOException
-