-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]"; | ||
|
@@ -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`: | ||
|