Buckets:
37 GB
4,042,753 files
Updated about 1 month ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| src | 1 items | ||
| tests | 1 items | ||
| CHANGELOG.md | 1.54 kB xet | 09aa73fb | |
| README.md | 2.47 kB xet | dcfdcaee | |
| deno.json | 377 Bytes xet | 292e24f9 | |
| mod.ts | 602 Bytes xet | 8b315b6b |
@zuke/kustomize
Typed Kustomize CLI task wrappers for
Zuke builds — build and
editSetImage.
import { KustomizeTasks } from "@zuke/kustomize";
await KustomizeTasks.build((s) => s.dir("overlays/prod").output("out.yaml"));
await KustomizeTasks.editSetImage((s) => s.image("api", "api:1.4"));
API
Full typed API — generated from deno doc
`@zuke/kustomize` — typed `KustomizeTasks` wrappers for the
Kustomize (https://kustomize.io) CLI, for use in Zuke builds.
```ts
import { KustomizeTasks } from "@zuke/kustomize";
await KustomizeTasks.build((s) => s.dir("overlays/prod"));
await KustomizeTasks.editSetImage((s) => s.image("api", "api:1.4"));
```
@module
const KustomizeTasks: KustomizeTasksApi
Typed task functions for the `kustomize` CLI.
class KustomizeBuildSettings extends KustomizeSettings
Settings for `kustomize build`.
dir(path: PathLike): this
The kustomization directory to build (defaults to the current directory).
output(path: PathLike): this
Write the rendered output to a file or directory (`--output`).
enableHelm(): this
Enable the Helm chart inflator (`--enable-helm`).
loadRestrictor(mode: string): this
Set the file-load restrictor, e.g. `LoadRestrictionsNone` (`--load-restrictor`).
override protected buildArgs(): string[]
Assemble the `kustomize build` argv.
class KustomizeEditSetImageSettings extends KustomizeSettings
Settings for `kustomize edit set image`.
image(name: string, reference: string): this
Set an image override, e.g. `("api", "api:1.4")` → `api=api:1.4`; repeatable,
at least one is required.
override protected buildArgs(): string[]
Assemble the `kustomize edit set image` argv.
abstract class KustomizeSettings extends ToolSettings
Base for all `kustomize` subcommand settings: the binary is `kustomize`.
override protected defaultTool(): string
The binary these settings invoke: `kustomize`.
interface KustomizeTasksApi
The shape of {@link KustomizeTasks}.
build(configure?: Configure<KustomizeBuildSettings>): Promise<CommandOutput>
Render a kustomization: `kustomize build`.
editSetImage(configure?: Configure<KustomizeEditSetImageSettings>): Promise<CommandOutput>
Update image overrides: `kustomize edit set image`.
- Total size
- 37 GB
- Files
- 4,042,753
- Last updated
- Oct 24
- Pre-warmed CDN
- US EU US EU