Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Manifest type 別リファレンス

tazuna.yamlmanifests[].type には 5 種類の値を取れます。 このセクションでは type ごとの path が指す先固有フィールドapply / destroy / build 時の振る舞い を 1 ページずつにまとめます。

Manifest の共通フィールド(name / path / type / tags / includes / tests)の仕様は tazuna.yaml スキーマ - Manifest を参照してください。

一覧

  • kustomize — kustomize でレンダリングしたリソースを反映する
  • helmfile — helmfile template の結果を反映する
  • oras — OCI registry から artifact を pull し、helmfile / kustomize に委譲する
  • parallel — 子 Manifest を並列に処理する
  • genesissecret — GenesisSecret YAML から Kubernetes Secret を生成する

type と固有フィールドの対応

各 type は manifests[] 内で 対応するオプションオブジェクト を持ちます。 type と対応するフィールドだけが読まれ、他は無視されます。

type固有フィールド名フィールド型
kustomizekustomizeManifestKustomize
helmfilehelmfileManifestHelmfile
orasorasManifestORAS
parallelparallelManifestParallel
genesissecretgenesisSecret空オブジェクト(現バージョンではフィールドを持たない)

type: genesissecret は全部小文字ですが、対応するフィールド名は genesisSecret(camelCase)です。 YAML キーは camelCase に統一されており、type の値だけがプレーンな識別子(全部小文字)になっています。

type と path の対応

pathtazuna.yaml 自身の置かれているディレクトリ起点 の相対パスとして解釈されます。 type ごとに何を指すべきかが異なります。

typepath が指す先
kustomizekustomization.yaml を含むディレクトリ
helmfilehelmfile.yaml を含むディレクトリ
oras実体としては使用されません。バリデーション都合で空にはできないため、適当なディレクトリを書きます。
parallel実体としては使用されません。children[] 側の path が使われます。バリデーション都合で空にはできません。
genesissecretGenesisSecret YAML ファイル(他の type と違い、ディレクトリではなく単一ファイル)