You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm trying to pass arguments between the application and the applicationset.
I have app-of-apps application that install application that install applicationset.
The problem is to pass arguments from the application that installs the applicaitonsets
{{ range .Values.applications }}
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ $.Values.cluster_name }}-{{ .name }}
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
labels:
name: {{ $.Values.cluster_name }}-{{ .name }}
spec:
project: {{ .project }}
source:
repoURL: {{ .repoURL }}
targetRevision: {{ .targetRevision }}
path: {{ .path }}
directory:
jsonnet:
tlas:
- name: ACCOUNT_NAME
value: {{ $.Values.account_name }}
- name: CLUSTER_NAME
value: {{ $.Values.cluster_name }}
{{- range $key, $value := .extraVars }}
- name: {{ $key }}
value: {{ $value }}
{{- end }}
# Destination cluster and namespace to deploy the application
destination:
name: "{{ $.Values.cluster_name }}"
namespace: {{ .namespace }}
# Sync policy
syncPolicy:
{{- if .syncPolicy }}
{{- .syncPolicy | toYaml | trim | nindent 4 }}
{{- end }}
syncOptions:
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
retry:
limit: 5 # number of failed sync attempt retries; unlimited number of attempts if less than 0
backoff:
duration: 5s # the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h")
factor: 2 # a factor to multiply the base duration after each failed retry
maxDuration: 3m # the maximum amount of time allowed for the backoff strategy
revisionHistoryLimit: 5
{{ end }}
How can I consume the "ACCOUNT_NAME" in the applicationsets?
or even to pass the variables from the Application directly to helpfile?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, I'm trying to pass arguments between the application and the applicationset.
I have
app-of-apps
application that install application that install applicationset.The problem is to pass arguments from the application that installs the applicaitonsets
How can I consume the "ACCOUNT_NAME" in the applicationsets?
or even to pass the variables from the Application directly to helpfile?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions