Package io.fabric8.kubernetes.client
Interface ExtensionAdapter<C>
- Type Parameters:
C- The Client.
- All Known Implementing Classes:
AdmissionRegistrationAPIGroupExtensionAdapter,APIGroupExtensionAdapter,AppsAPIGroupExtensionAdapter,AutoscalingAPIGroupExtensionAdapter,BatchAPIGroupExtensionAdapter,ExtensionsAPIGroupExtensionAdapter,MetricAPIGroupExtensionAdapter,NetworkAPIGroupExtensionAdapter,PolicyAPIGroupExtensionAdapter,RbacAPIGroupExtensionAdapter,SchedulingAPIGroupExtensionAdapter,SettingsAPIGroupExtensionAdapter,StorageAPIGroupExtensionAdapter,V1AdmissionRegistrationAPIGroupExtensionAdapter,V1APIGroupExtensionAdapter,V1AutoscalingAPIGroupExtensionAdapter,V1beta1AdmissionRegistrationAPIGroupExtensionAdapter,V2beta1AutoscalingAPIGroupExtensionAdapter,V2beta2AutoscalingAPIGroupExtensionAdapter
public interface ExtensionAdapter<C>
An Adapter that can be used to adapt an instance of the
NamespacedKubernetesClient .-
Method Summary
Modifier and Type Method Description Cadapt(Client client)The adapt function.Class<C>getExtensionType()BooleanisAdaptable(Client client)Checks if it is possible to adapt.
-
Method Details
-
getExtensionType
- Returns:
- The concrete class of the
Client.
-
isAdaptable
Checks if it is possible to adapt. It checks that the requirements of the target client are meet. (e.g. checks that openshift is available).- Parameters:
client- The instance ofNamespacedKubernetesClientto adapt.- Returns:
- boolean value indicating whether client is adaptable or not.
-
adapt
The adapt function.- Parameters:
client- The instance ofNamespacedKubernetesClientto adapt.- Returns:
- The instance of the
Client.
-