zuke.tools.kustomize

← Python API reference

@zuke/kustomize 1.0.1: @zuke/kustomize — typed KustomizeTasks wrappers for the [Kustomize](https://kustomize.io) CLI, for use in Zuke builds.

Symbols

#

KustomizeBuildSettings

class
class KustomizeBuildSettings(KustomizeSettings)

Settings for kustomize build.

  • dir(path: str) -> Self

    The kustomization directory to build (defaults to the current directory).

  • output(path: str) -> Self

    Write the rendered output to a file or directory (--output).

  • enable_helm() -> Self

    Enable the Helm chart inflator (--enable-helm).

  • load_restrictor(mode: str) -> Self

    Set the file-load restrictor, e.g. LoadRestrictionsNone (--load-restrictor).

#

KustomizeEditSetImageSettings

class
class KustomizeEditSetImageSettings(KustomizeSettings)

Settings for kustomize edit set image.

  • image(name: str, reference: str) -> Self

    Set an image override, e.g. ("api", "api:1.4") → api=api:1.4; repeatable, at least one is required.

#

KustomizeSettings

class
class KustomizeSettings(ToolSettings)

Base for all kustomize subcommand settings: the binary is kustomize.

#

KustomizeTasks

class
class KustomizeTasks

Typed task functions for the kustomize CLI.

  • static async build(ctx: ServiceContext, configure: Callable[[KustomizeBuildSettings], KustomizeBuildSettings] | None=None) -> ExecResult

    Render a kustomization: kustomize build.

  • static async edit_set_image(ctx: ServiceContext, configure: Callable[[KustomizeEditSetImageSettings], KustomizeEditSetImageSettings] | None=None) -> ExecResult

    Update image overrides: kustomize edit set image.