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
Copy file name to clipboardExpand all lines: README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,14 +33,14 @@ Add this dependency to your project's POM:
33
33
<dependency>
34
34
<groupId>io.kubernetes</groupId>
35
35
<artifactId>client-java</artifactId>
36
-
<version>9.0.0</version>
36
+
<version>10.0.0</version>
37
37
</dependency>
38
38
```
39
39
40
40
### Gradle users
41
41
42
42
```groovy
43
-
compile 'io.kubernetes:client-java:9.0.0'
43
+
compile 'io.kubernetes:client-java:10.0.0'
44
44
```
45
45
46
46
### Others
@@ -55,9 +55,20 @@ mvn package
55
55
56
56
Then manually install the following JARs:
57
57
58
-
* target/client-java-api-10.0.0-SNAPSHOT.jar
58
+
* target/client-java-api-10.0.1-SNAPSHOT.jar
59
59
* target/lib/*.jar
60
60
61
+
## Known Issues
62
+
63
+
##### 1. Exception on deleting resources: "java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT..."
64
+
65
+
This is happening because openapi schema from kubernetes upstream doesn't match its implementation due to
66
+
the limitation of openapi v2 schema expression [#86](https://github.com/kubernetes-client/java/issues/86).
67
+
Consider either catch and ignore the JsonSyntaxException or do the deletion in the following form:
68
+
69
+
- Use Kubectl equivalence, see examples [here](https://github.com/kubernetes-client/java/blob/6fa3525189d9e50d9b07016155642ddf59990905/e2e/src/test/groovy/io/kubernetes/client/e2e/kubectl/KubectlNamespaceTest.groovy#L69-L72)
70
+
- Use generic kubernetes api, see examples [here](https://github.com/kubernetes-client/java/blob/6fa3525189d9e50d9b07016155642ddf59990905/examples/src/main/java/io/kubernetes/client/examples/GenericClientExample.java#L56)
71
+
61
72
## Example
62
73
63
74
We prepared a few examples for common use-cases which are shown below:
@@ -103,7 +114,7 @@ We prepared a few examples for common use-cases which are shown below:
103
114
Leader election utilities to help implement HA controllers.
0 commit comments