apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: ${env_ns}-${app_name} namespace: ${argoAppNS} labels: bu: ${bu} team: ${team} app_name: ${app_name} service: ${app_name} env: ${environment} priority_v2: <% print priority_v2?:'cp3' %> primary_owner: ${primary_owner} secondary_owner: ${secondary_owner} commit_id: ${commit_id} spec: destination: namespace: ${env_ns}-${app_name} <% if (CLOUD_PROVIDER == 'AWS') { print "server: ${clusterName}" } %> <% if (CLOUD_PROVIDER == 'GCP') { print "name: ${clusterName}" } %> project: ${buini}-${teamini} source: helm: valueFiles: - ../${helm_values_path}/values.yaml path: ${helm_version} repoURL: https://github.com/Meesho/devops-helm-charts.git targetRevision: ${branch_name} syncPolicy: syncOptions: - CreateNamespace=true