# v1alpha1MergeGenerator

Type: object

MergeGenerator merges the output of two or more generators. Where the values for all specified merge keys are equal
between two sets of generated parameters, the parameter sets will be merged with the parameters from the latter
generator taking precedence. Parameter sets with merge keys not present in the base generator's params will be
ignored.
For example, if the first generator produced [{a: '1', b: '2'}, {c: '1', d: '1'}] and the second generator produced
[{'a': 'override'}], the united parameters for merge keys = ['a'] would be
[{a: 'override', b: '1'}, {c: '1', d: '1'}].

MergeGenerator supports template overriding. If a MergeGenerator is one of multiple top-level generators, its
template will be merged with the top-level generator before the parameters are applied.

Schema: [v1alpha1MergeGenerator](https://sourcey-argocd.pages.dev/api/models/v1alpha1mergegenerator/index.md)

- `generators` (optional)
  Type: array
  
  Items:
    Reference: [v1alpha1ApplicationSetNestedGenerator](https://sourcey-argocd.pages.dev/api/models/v1alpha1applicationsetnestedgenerator/index.md); Type: object
    
    ApplicationSetNestedGenerator represents a generator nested within a combination-type generator (MatrixGenerator or
    MergeGenerator).

- `mergeKeys` (optional)
  Type: array
  
  Items:
    Type: string

- `template` (optional)
  Reference: [v1alpha1ApplicationSetTemplate](https://sourcey-argocd.pages.dev/api/models/v1alpha1applicationsettemplate/index.md); Type: object