import org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.K8sAbstractRestClientService
import org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.K8sConnectionPluginConfiguration
+import org.onap.ccsdk.cds.blueprintsprocessor.rest.service.BlueprintWebClientService
open class K8sQueryRestClient(
k8sConfiguration: K8sConnectionPluginConfiguration
-) : K8sAbstractRestClientService(k8sConfiguration, "k8s-plugin-query") {
+) : K8sAbstractRestClientService(k8sConfiguration, CLIENT_NAME) {
+
+ companion object {
+ public const val CLIENT_NAME = "k8s-plugin-query"
+
+ fun getK8sQueryRestClient(
+ k8sConfiguration: K8sConnectionPluginConfiguration
+ ): BlueprintWebClientService {
+ val rbQueryService = K8sQueryRestClient(
+ k8sConfiguration
+ )
+ return getInterceptedWebclientService(rbQueryService, CLIENT_NAME)
+ }
+ }
override fun apiUrl(): String {
return "$baseUrl/v1/query"