Replies: 3 comments
-
I have tried the following but notings seems to work |
Beta Was this translation helpful? Give feedback.
-
Can you share more details about the error if available, please? Also, what's the value of .cidrs? |
Beta Was this translation helpful? Give feedback.
-
Please try apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: abc
spec:
generators:
- list:
elements:
- cluster: xyz
secretStoreRefName: bayut-om-ssm
cidrs:
- block: 10.40.0.0/16
- block: 10.0.0.0/16
template:
metadata:
name: 'abc'
spec:
project: "abc"
source:
repoURL: [email protected]:asdf/jkl.git
targetRevision: mybranch
path: charts/mychart
templatePatch: |
spec:
source:
helm:
values: |
name: '{{secretStoreRefName}}'
env: '{{cluster}}'
network:
cidrs: {{ toJson .cidrs }}
|
Beta Was this translation helpful? Give feedback.
-
Hi, I’m using Argo CD version 2.10 and am encountering an issue where
toYaml
ortoJson
functions aren’t working withintemplate.spec.source.helm.values
in anApplicationSet
.Here is a simplified version of my
ApplicationSet
configuration:However, I receive an error: error parsing value as string .
When I directly use hardcoded values in helm.values, everything seems to work fine. It’s only when using the function that it fails to retrieve and assign the values in helm.values.
Beta Was this translation helpful? Give feedback.
All reactions