feat: add global_target parameter for selective global generator execution#28
Open
bsda wants to merge 1 commit intokapicorp:mainfrom
Open
feat: add global_target parameter for selective global generator execution#28bsda wants to merge 1 commit intokapicorp:mainfrom
bsda wants to merge 1 commit intokapicorp:mainfrom
Conversation
…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:
...
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for
global_targetparameter in inventory to allow targets to selectively opt into global generator execution from specific coordinators.Behavior:
global_targetis not set: target participates in all global generators (backward compatible)global_targetis set: target only participates in global generators from the specified coordinator targetUse 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-prodtarget: prod