Skip to content

Commit

Permalink
fix readme typo
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Jan 18, 2025
1 parent 20e3528 commit 4b7850c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ console.log(podList);
// see files in examples/ for more API demos (watching, creation, etc)
```

Or with JSR imports:
When running locally (with `kubectl` set up), you probably just to add `--allow-run=kubectl` to run this.
For a container being deployed onto a cluster, there's more flags to provide instead;
see `/x/kubernetes_client` for more information.


### Usage with JSR Imports
Note that there is no default export, so you will need to
import the particular Kubernetes API groups that you want to work with.
This layout keeps program size smaller.

```ts
import { autoDetectClient } from "jsr:@cloudydeno/[email protected]";
Expand All @@ -39,17 +47,12 @@ const podList = await coreApi.getPodList();
console.log(podList);
```


When running locally (with `kubectl` set up), you probably just to add `--allow-run=kubectl` to run this.
For a container being deployed onto a cluster, there's more flags to provide instead;
see `/x/kubernetes_client` for more information.

## Changelog

* `v0.5.4` on `2025-01-18`:
* Includes 'builtin' APIs generated from K8s `v1.32.0`.
* Several API versions were changed, removed, or added.
* You may need to update imports if you used an API version which as been moved.
* You may need to update imports if you used a non-stable API version which has been moved.
* `cert-manager` and `argo-cd` CRDs have been updated.

* `v0.5.3` on `2024-10-16`:
Expand Down

0 comments on commit 4b7850c

Please sign in to comment.