public class F8OpenShiftAdapter extends AbstractOpenShiftAdapter
configuration, log| Constructor and Description |
|---|
F8OpenShiftAdapter(io.fabric8.openshift.clnt.v4_0.NamespacedOpenShiftClient client,
CubeOpenShiftConfiguration configuration) |
addRoleBinding, createResource, delay, deleteResources, execute, execute, execute, getPods, getProxy, getReadyPods, jolokia, replacePods, setProtocolMetaData, url, waitForReadyPodspublic F8OpenShiftAdapter(io.fabric8.openshift.clnt.v4_0.NamespacedOpenShiftClient client,
CubeOpenShiftConfiguration configuration)
public String exec(Map<String,String> labels, int waitSeconds, String... input) throws Exception
Exceptionprotected Proxy createProxy()
createProxy in class AbstractOpenShiftAdapterpublic boolean checkProject()
public boolean deleteProject()
public void deletePod(String podName, long gracePeriodSeconds)
public void triggerDeploymentConfigUpdate(String prefix, boolean wait, Map<String,String> variables) throws Exception
Exceptionpublic void triggerDeploymentConfigUpdate(String prefix, boolean wait) throws Exception
Exceptionpublic String deployPod(String name, String env, RCContext context) throws Exception
Exceptionpublic String deployReplicationController(String name, String env, RCContext context) throws Exception
Exceptionpublic List<? extends OpenShiftResource> processTemplateAndCreateResources(String templateKey, String templateURL, List<ParamValue> values, Map<String,String> labels) throws Exception
Exceptionprotected OpenShiftResourceHandle createResourceFromStream(InputStream stream) throws IOException
createResourceFromStream in class AbstractOpenShiftAdapterIOExceptionprotected OpenShiftResourceHandle createRoleBinding(String roleRefName, String userName)
createRoleBinding in class AbstractOpenShiftAdapterpublic io.fabric8.kubernetes.api.model.v4_0.Service getService(String namespace, String serviceName)
protected Map<String,String> getLabels(String prefix) throws Exception
getLabels in class AbstractOpenShiftAdapterExceptionpublic void scaleDeployment(String prefix, int replicas) throws Exception
Exceptionpublic InputStream streamLog(String podName) throws Exception
Exceptionpublic String getLog(String prefix, Map<String,String> labels) throws Exception
Exceptionpublic void cleanReplicationControllers(String... ids) throws Exception
Exceptionpublic void cleanRemnants(Map<String,String> labels) throws Exception
Exceptionpublic void close()
throws IOException
IOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.