Skip to content

Commit

Permalink
v0.3.1: Fix cluster CA setup under Deno v1.15+
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Nov 27, 2021
1 parent 7f03c44 commit 805be90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ Check out `lib/contract.ts` to see the type/API contract.

## Changelog

* `v0.3.1` on `2021-11-27`:
Fix cluster certificate authority setup in `KubeConfigRestClient`
on [Deno v1.15.0 and later](https://deno.com/blog/v1.15#in-memory-ca-certificates).

* `v0.3.0` on `2021-08-29`:
Allow TLS authentication, when supported by Deno ([#7](https://github.com/cloudydeno/deno-kubernetes_client/issues/7)).
More consistently use `--verbose` flag ([#4](https://github.com/cloudydeno/deno-kubernetes_client/issues/4)).
Expand Down
1 change: 1 addition & 0 deletions transports/via-kubeconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class KubeConfigRestClient implements RestClient {
if (serverCert || userKey) {
if ('createHttpClient' in Deno) {
httpClient = (Deno as any).createHttpClient({
caCerts: serverCert ? [serverCert] : [],
caData: serverCert,
privateKey: userKey,
certChain: userCert,
Expand Down

0 comments on commit 805be90

Please sign in to comment.