Argo CD · JSON Structure

Argo Cd V1Alpha1 Merge Generator Structure

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.

Type: object Properties: 3
Continuous DeliveryContainersDeploymentGitOpsKubernetesCNCFOpen Source

v1alpha1MergeGenerator is a JSON Structure definition published by Argo CD, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

generators mergeKeys template

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/argo-cd/refs/heads/main/json-structure/argo-cd-v1alpha1-merge-generator-structure.json",
  "name": "v1alpha1MergeGenerator",
  "description": "MergeGenerator merges the output of two or more generators. Where the values for all specified merge keys are equal\nbetween two sets of generated parameters, the parameter sets will be merged with the parameters from the latter\ngenerator taking precedence. Parameter sets with merge keys not present in the base generator's params will be\nignored.\nFor example, if the first generator produced [{a: '1', b: '2'}, {c: '1', d: '1'}] and the second generator produced\n[{'a': 'override'}], the united parameters for merge keys = ['a'] would be\n[{a: 'override', b: '1'}, {c: '1', d: '1'}].\n\nMergeGenerator supports template overriding. If a MergeGenerator is one of multiple top-level generators, its\ntemplate will be merged with the top-level generator before the parameters are applied.",
  "type": "object",
  "properties": {
    "generators": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/v1alpha1ApplicationSetNestedGenerator"
      }
    },
    "mergeKeys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "template": {
      "$ref": "#/definitions/v1alpha1ApplicationSetTemplate"
    }
  }
}