Skip to content

Argocd + env var + applicationset + kustomize #9814

Answered by soudaburger
soudaburger asked this question in Q&A
Discussion options

You must be logged in to vote

Actually I solved my own problem, but this was a HUGE combination of documented pieces from around the web... ok so here are the pieces...

In my applicationSet:

        plugin:
          env:
            - name: IMAGETAG
              value: "{{version}}"
          name: kustomized-helm

In argocd helm configuration for plugins:

    # server.config.configManagementPlugins
    configManagementPlugins: |
      - name: kustomized-helm
        generate:
          command: ["/bin/sh", "-c"]
          args: ["IMAGETAG=${ARGOCD_ENV_IMAGETAG} kustomize build --enable-helm"]

Local kustomization.yaml:

configMapGenerator:
  - name: image-tag-var
    env: image.tag.properties

replacements:
  - path: i…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@raebbar
Comment options

@pantmal
Comment options

@raebbar
Comment options

Answer selected by soudaburger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants