I'm trying to generate kubernetes manifests from local ArgoCD manifests that use helm. I'm using a script to parse values and then helm template
to generate the resulting template. But I'm having trouble converting the different values into a single template based on precedence
ArgoCD's documentation describes 3 different ways to inject values into a helm chart. Namely valueFiles
, in-line values
and helm parameters
.
For example if i have this argo application manifest containing all three:
apiVersion: argoproj.io/v1alpha1
kind: Application
...
source:
helm:
parameters:
- name: "param1"
value: value1
values: |
param1: value2
valuesFile:
- values-file-1.yaml
- values-file-2.yaml
and let's say this is the contents of: values-file-1.yaml
param1: value4
values-file-2.yaml
param1: value5
what will param1
ultimately be when this manifest is deployed on argocd?
and what will the precedence be amongst all the values?
I tried looking at documentation but wasn't able to find it