Is there a way to avoid using ancient versions of okhttp and okio when using kubernetes-client? #5362
-
We're using the latest version of kubernetes-client ( I saw some kubernetes-client issues (eg: #2632) that mentioned switching from that old version of okhttp to vert.x or okhttp4, but it's unclear to me of that ever happened, and if so, how can we use kubernetes-client without pulling in these really old okhttp and okio dependencies. Is there a way for us to avoid using these ancient and vulnerable versions of okhttp and okio when using kubernetes-client? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Are you asking how to switch underlying HTTP client ? It was done in 6.x (see docs). It can be done by excluding dependency like this: <dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
<exclusions>
<exclusion>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-httpclient-okhttp</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-httpclient-vertx</artifactId>
</dependency> |
Beta Was this translation helpful? Give feedback.
Are you asking how to switch underlying HTTP client ? It was done in 6.x (see docs). It can be done by excluding dependency like this: