You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+123-5Lines changed: 123 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,10 +47,41 @@ It renders manifest files, commits the results into your **continuous deployment
47
47
---
48
48
49
49
### Environment Map
50
-
`env_map` must be valid JSON in this form:
50
+
51
+
The workflow needs an `env_map` that defines your environments, clusters, and related metadata.
52
+
You can provide it in **two ways**:
53
+
54
+
1. As a workflow input (`with: env_map: "<JSON>"`) ✅ **preferred**
55
+
2. As an environment variable (`env: ENV_MAP: "<JSON>"`) — fallback for self-hosted runners
56
+
57
+
If neither is provided, the workflow fails.
58
+
59
+
---
60
+
61
+
#### Cluster Resolution Logic
62
+
63
+
1. If `target_cluster` is set:
64
+
- The workflow searches **all clusters across all environments** in the `env_map`.
65
+
- If it finds a matching cluster name, it selects that cluster (and its `dns_zone`, `container_registry`, `uami_map`) regardless of the `target` environment.
66
+
- This makes it possible to directly target a cluster by name while still requiring `target` for approvals.
67
+
68
+
2. If `target_cluster` is not set:
69
+
- The workflow looks inside the `target` environment only.
70
+
- If that environment has a **single cluster**, it is selected automatically.
71
+
- If the environment has **multiple clusters**, the workflow fails with a clear error message and lists valid options.
0 commit comments