From 6659baf28907bf49d0e4efd77ef18392eccee86a Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 28 Feb 2022 08:51:35 +0100 Subject: [PATCH] Update Fabric8: Kubernetes Client to most recent version 5.12.1 All changes: https://github.com/fabric8io/kubernetes-client/compare/v5.10.0...v5.12.1 We need to bump the Kubernetes Client to the most recent version to support gRPC actions (see https://github.com/dekorateio/dekorate/issues/857) --- .../client/dsl/internal/ServiceMonitorOperationsImpl.java | 8 ++++---- pom.xml | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/annotations/prometheus-annotations/src/main/java/io/dekorate/prometheus/client/dsl/internal/ServiceMonitorOperationsImpl.java b/annotations/prometheus-annotations/src/main/java/io/dekorate/prometheus/client/dsl/internal/ServiceMonitorOperationsImpl.java index 7f15e3b83..49e7aa36d 100644 --- a/annotations/prometheus-annotations/src/main/java/io/dekorate/prometheus/client/dsl/internal/ServiceMonitorOperationsImpl.java +++ b/annotations/prometheus-annotations/src/main/java/io/dekorate/prometheus/client/dsl/internal/ServiceMonitorOperationsImpl.java @@ -17,17 +17,17 @@ import io.dekorate.prometheus.model.ServiceMonitor; import io.dekorate.prometheus.model.ServiceMonitorList; -import io.fabric8.kubernetes.client.Config; +import io.fabric8.kubernetes.client.ClientContext; import io.fabric8.kubernetes.client.dsl.Resource; import io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation; import io.fabric8.kubernetes.client.dsl.base.OperationContext; -import okhttp3.OkHttpClient; +import io.fabric8.kubernetes.client.dsl.internal.HasMetadataOperationsImpl; public class ServiceMonitorOperationsImpl extends HasMetadataOperation> { - public ServiceMonitorOperationsImpl(OkHttpClient client, Config config) { - this(new OperationContext().withOkhttpClient(client).withConfig(config)); + public ServiceMonitorOperationsImpl(ClientContext clientContext) { + this(HasMetadataOperationsImpl.defaultContext(clientContext)); } public ServiceMonitorOperationsImpl(OperationContext context) { diff --git a/pom.xml b/pom.xml index 21041ae6d..68faad234 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ 1.21 1.18 2.12.3 - 5.10.0 + 5.12.1 0.60.0 2.6.0 @@ -83,7 +83,6 @@ 2.12.2 1.6.2 - 1.6 1.3.1