public class ClusterAccess extends Object
Constructor and Description |
---|
ClusterAccess(ClusterConfiguration clusterConfiguration) |
ClusterAccess(ClusterConfiguration clusterConfiguration,
io.fabric8.kubernetes.client.KubernetesClient client) |
ClusterAccess(String namespace)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<T extends io.fabric8.kubernetes.client.KubernetesClient> |
createDefaultClient(io.fabric8.maven.docker.util.Logger log) |
io.fabric8.kubernetes.client.KubernetesClient |
createKubernetesClient() |
io.fabric8.openshift.client.OpenShiftClient |
createOpenShiftClient() |
String |
getNamespace() |
boolean |
isOpenShift(io.fabric8.maven.docker.util.Logger log) |
boolean |
isOpenShiftImageStream(io.fabric8.maven.docker.util.Logger log)
Returns true if this cluster is a traditional OpenShift cluster with the
/oapi REST API
or supports the new /apis/image.openshift.io API Group |
RuntimeMode |
resolveRuntimeMode(RuntimeMode mode,
io.fabric8.maven.docker.util.Logger log) |
public ClusterAccess(ClusterConfiguration clusterConfiguration)
@Deprecated public ClusterAccess(String namespace)
public ClusterAccess(ClusterConfiguration clusterConfiguration, io.fabric8.kubernetes.client.KubernetesClient client)
public <T extends io.fabric8.kubernetes.client.KubernetesClient> T createDefaultClient(io.fabric8.maven.docker.util.Logger log)
public io.fabric8.kubernetes.client.KubernetesClient createKubernetesClient()
public io.fabric8.openshift.client.OpenShiftClient createOpenShiftClient()
public String getNamespace()
public boolean isOpenShiftImageStream(io.fabric8.maven.docker.util.Logger log)
/oapi
REST API
or supports the new /apis/image.openshift.io
API Grouppublic boolean isOpenShift(io.fabric8.maven.docker.util.Logger log)
public RuntimeMode resolveRuntimeMode(RuntimeMode mode, io.fabric8.maven.docker.util.Logger log)
Copyright © 2020. All rights reserved.