public class OpenshiftAdapterSupport extends Object
| Constructor and Description |
|---|
OpenshiftAdapterSupport() |
| Modifier and Type | Method and Description |
|---|---|
DefaultOpenShiftClient |
adapt(Client client) |
static HttpClient |
adaptHttpClient(HttpClient httpClient,
OpenShiftConfig config)
Creates a new OkHttpClient from the provided one with OpenShift specific interceptors and configurations.
|
Boolean |
isAdaptable(Client client) |
static boolean |
isOpenShiftAPIGroups(HttpClient client,
OpenShiftConfig config)
Check if OpenShift API Groups are available
|
public DefaultOpenShiftClient adapt(Client client)
public static boolean isOpenShiftAPIGroups(HttpClient client, OpenShiftConfig config)
client - The client.config - OpenShiftConfig OpenShift Configurationpublic static HttpClient adaptHttpClient(HttpClient httpClient, OpenShiftConfig config)
httpClient - the client to adapt.config - the OpenShift configuration.Copyright © 2015–2020 Red Hat. All rights reserved.