Skip to content

Commit

Permalink
fix (kubernetes-client-api) : Make Config's ExecCredential nested cla…
Browse files Browse the repository at this point in the history
…sses public (fabric8io#4724)

Expose these nested config classes so that they can be used in
reflection.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
  • Loading branch information
rohanKanojia committed Feb 15, 2023
1 parent 6877307 commit 35add4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#### Improvements
* Fix #3805: DeletionTimestamp and Finalizer support in Mock server.
* Fix #4644: generate CRDs in parallel and optimize code
* Fix #4724: Private configuration classes cause trouble with Java native (reflection)
* Fix #4739: honor optimistic concurrency control semantics in the mock server for `PUT` and `PATCH` requests.
* Fix #4747: migrate to SnakeYAML Engine
* Fix #4788: moved retry logic into the standard client so that it applies to all requests, including websockets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -858,19 +858,19 @@ private static Context setCurrentContext(String context, Config config, io.fabri
}

@JsonIgnoreProperties(ignoreUnknown = true)
private static final class ExecCredential {
public static final class ExecCredential {
public String kind;
public String apiVersion;
public ExecCredentialSpec spec;
public ExecCredentialStatus status;
}

@JsonIgnoreProperties(ignoreUnknown = true)
private static final class ExecCredentialSpec {
public static final class ExecCredentialSpec {
}

@JsonIgnoreProperties(ignoreUnknown = true)
private static final class ExecCredentialStatus {
public static final class ExecCredentialStatus {
public String token;
// TODO clientCertificateData, clientKeyData, expirationTimestamp
}
Expand Down

0 comments on commit 35add4b

Please sign in to comment.