public class OpenShifts extends Object
| Constructor and Description |
|---|
OpenShifts() |
| Modifier and Type | Method and Description |
|---|---|
static OpenShift |
admin() |
static OpenShift |
admin(String namespace) |
static OpenShiftBinary |
adminBinary() |
static OpenShiftBinary |
adminBinary(String namespace) |
static String |
getAdminToken() |
static String |
getBinaryPath() |
static String |
getMasterToken() |
static File |
getOcFromCache(String version,
String ocUrl,
File ocTarFile)
Deprecated.
this should have never been made public, can be removed in future versions. It is not used internally by XTF
|
static String |
getVersion()
Returns
OpenShiftConfig.version(). |
static OpenShift |
master() |
static OpenShift |
master(String namespace) |
static OpenShiftBinary |
masterBinary() |
static OpenShiftBinary |
masterBinary(String namespace) |
static void |
saveOcOnCache(String version,
String ocUrl,
File ocTarFile)
Deprecated.
this should have never been made public, can be removed in future versions. It is not used internally by XTF
|
public static OpenShift admin()
public static OpenShift master()
public static String getBinaryPath()
public static OpenShiftBinary masterBinary()
public static OpenShiftBinary masterBinary(String namespace)
public static OpenShiftBinary adminBinary()
public static OpenShiftBinary adminBinary(String namespace)
@Deprecated public static void saveOcOnCache(String version, String ocUrl, File ocTarFile) throws IOException
getOcFromCache(String, String, File).
It works only if OpenShiftConfig.isBinaryCacheEnabled().version - String, OCP cluster version.ocUrl - String, download URL.ocTarFile - String, workdir file.IOException@Deprecated public static File getOcFromCache(String version, String ocUrl, File ocTarFile) throws IOException
saveOcOnCache(String, String, File).version - String, OCP cluster version.ocUrl - String, download URL.ocTarFile - String, workdir file.IOExceptionpublic static String getVersion()
OpenShiftConfig.version(). If not available then access OpenShift endpoint for a version. Be aware
that this operation requires admin role for OpenShift 4 unlike to OpenShift 3.public static String getMasterToken()
public static String getAdminToken()
Copyright © 2023. All rights reserved.