tazuna apply
Reflects the Manifests declared in tazuna.yaml into the cluster. The central command of Tazuna.
tazuna apply [-f tazuna.yaml] [--tags ...] [--no-cache | --offline]
Behavior
The execution order is as follows. Cluster access happens from step 5 onward.
- Load and validate
tazuna.yaml. - If
spec.context_matchesis set, match against the current-context. Abort immediately on mismatch. - Filter by
--tags. - Walk
manifests[]in declaration order. - Hand each Manifest to its corresponding Manager and apply it to the cluster.
- Execute each Manifest’s
tests. - After all Manifests are applied, execute
spec.tests(overall Tests).
Flag
In addition to global flags, the following are accepted.
| Flag | Alias | Type | Default | Description |
|---|---|---|---|---|
--tags | -t | []string | [] | Limits the processing target to Manifests with at least one of the specified tags (OR evaluation). |
--no-cache | - | bool | false | For type: oras Manifests, always refetch from the registry without using the cache. |
--offline | - | bool | false | For type: oras Manifests, forbid access to the registry. If the cache misses, it is an error. |
--no-cache and --offline cannot be specified together.
Examples
tazuna apply -f tazuna.yaml
tazuna apply -f tazuna.yaml --tags web,batch
tazuna apply -f tazuna.yaml --log-level debug
Related
- Evaluated
context_matches - Filter spec:
manifests[].tags - Verify rendering before apply:
tazuna build - Remove existing resources:
tazuna destroy