Skip to content

Conversation

@bsda
Copy link
Contributor

@bsda bsda commented May 23, 2025

Add support for global_target parameter in inventory to allow targets to selectively opt into global generator execution from specific coordinators.

Behavior:

  • When global_target is not set: target participates in all global generators (backward compatible)
  • When global_target is set: target only participates in global generators from the specified coordinator target
  • Current executing target always processes its own inventory regardless of global_target settings

Use Case:
Enables fine-grained control over cross-target resource generation, allowing different targets to be coordinated by different "coordinator" targets while maintaining full backward compatibility.

Example:
target: argocd-prod

parameters:
  argocd:
    app_of_apps: true

target: prod

parameters:
 global_target: argocd-prod
  generators:
    argocd:
      applications:
        prod:
        ...

…ution

Add support for `global_target` parameter in inventory to allow targets
to selectively opt into global generator execution from specific coordinators.

**Behavior:**
- When `global_target` is not set: target participates in all global generators (backward compatible)
- When `global_target` is set: target only participates in global generators from the specified coordinator target
- Current executing target always processes its own inventory regardless of global_target settings

**Use Case:**
Enables fine-grained control over cross-target resource generation, allowing
different targets to be coordinated by different "coordinator" targets while
maintaining full backward compatibility.

**Example:**
```yaml
parameters:
  argocd:
    app_of_apps: true

parameters:
 global_target: argocd-prod
  generators:
    argocd:
      applications:
        prod:
        ...
 ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant