tazuna init
Generates a minimal includes-based tazuna.yaml skeleton. It suits the first step of bringing a new repository or component under Tazuna management.
tazuna init [-f tazuna.yaml] [--force]
Behavior
- If the output target (
-f/--file-path, defaulttazuna.yaml) already exists and--forceis not given, it exits with an error (so an existing file is not accidentally clobbered). - Writes
tazuna.yamlwith the following content and printscreated: <path>to stdout.- Sets
apiVersion/kindto the canonical values. - Pins
spec.minimumSupportedTazunaVersionto the version of the tazuna that generated it. As a result, an older tazuna binary that tries to process this file stops with an error. spec.manifestsis empty ([]). A commented example for loading each component’stazuna.yamlvia includes is attached.
- Sets
The generated skeleton (the version depends on the tazuna that generated it):
apiVersion: tazuna.pepabo.com/v1
kind: Tazuna
spec:
# The minimum version (semver) of tazuna required to process this tazuna.yaml.
# A tazuna binary below it exits with an error to prevent misapplication.
minimumSupportedTazunaVersion: "1.4.0"
# Load each component's tazuna.yaml via includes.
# Add includes entries to manifests as in the example below.
#
# manifests:
# - name: infra
# includes:
# - path: ./infra/tazuna.yaml
# - path: ./addons/tazuna.yaml
manifests: []
The skeleton as generated passes tazuna check as-is.
About version pinning
- If the running tazuna has a semver version (a release build), that value is normalized and embedded into
minimumSupportedTazunaVersion(a leadingvis stripped). - When run with a local build (a non-semver version such as
dev), the placeholder0.0.0is embedded. Regenerate with a release build, or manually rewrite it to an appropriate version.
For the comparison rule of minimumSupportedTazunaVersion itself, see tazuna.yaml schema - minimumSupportedTazunaVersion.
Flag
In addition to global flags, the following are accepted.
| Flag | Alias | Type | Default | Description |
|---|---|---|---|---|
--force | - | bool | false | Overwrites the output target even if it already exists. |
No arguments are accepted.
Examples
tazuna init
tazuna init -f infra/tazuna.yaml
tazuna init --force
Related
- Meaning of the generated fields:
tazuna.yamlschema - How to use includes:
tazuna.yamlschema - Using includes