Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

ApplicationSet not able to render helm chart when value is not defined in generator list #619

Open
simonstumpf opened this issue Feb 3, 2023 · 0 comments

Comments

@simonstumpf
Copy link

Hi All,

We're using ApplicationSets heavily in our setup.
In our Helm Chart we define all values in the values.yaml file, which in some cases need to be overwritten.
In that case we add a value to the generators list elements.

However I can't just use this in one of the elements array.
For example if I need to change the cpu requests, I have to define the cpu requests value in all elements of the generators list.

It would be quiet handy if ArgoCD was able to check if there is a default value configured instead of throwing an error:
failed exit status 1: Error: failed parsing --set data: key "}" has no value

Here is an example, maybe this helps you

spec:
  generators:
    - list:
        elements:
          - stage: prd
            cpuRequests: 500mi
          - stage: dev
           # no cpuRequests defined, here the default value defined in the values.yaml file of the Chart should be used

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant