You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migration is trivial. Since the secondary resource can be accessed from the dependent resource. So to access the secondary
35
+
Migration is trivial. Since the secondary resource can be accessed from the dependent resource. So to access the
36
+
secondary
36
37
resource just use `dependentResource.getSecondaryResource(primary,context)`.
38
+
39
+
## HTTP client choice
40
+
41
+
It is now possible to change the HTTP client used by the Fabric8 client to communicate with the Kubernetes API server.
42
+
By default, the SDK uses the historical default HTTP client which relies on Okhttp and there shouldn't be anything
43
+
needed to keep using this implementation. The `tomcat-operator` sample has been migrated to use the Vert.X based
44
+
implementation. You can see how to change the client by looking at
45
+
that [sample POM file](https://github.com/java-operator-sdk/java-operator-sdk/blob/d259fcd084f7e22032dfd0df3c7e64fe68850c1b/sample-operators/tomcat-operator/pom.xml#L37-L50):
46
+
47
+
- You need to exclude the default implementation (in this case okhttp) from the `operator-framework` dependency
48
+
- You need to add the appropriate implementation dependency, `kubernetes-httpclient-vertx` in this case, HTTP client
49
+
implementations provided as part of the Fabric8 client all following the `kubernetes-httpclient-<implementation name>`
0 commit comments