Skip to content

Commit 500757c

Browse files
Add autosync to template and inventory (#6)
1 parent 69e294f commit 500757c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

gitlab-to-argo/files/application_template.j2

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@ spec:
1313
repoURL: >-
1414
{{ item.ssh_url_to_repo }}
1515
targetRevision: "{{ target_revision }}"
16-
project: default
16+
project: default
17+
{% if syncPolicy is defined and syncPolicy | bool %}
18+
syncPolicy:
19+
automated:
20+
prune: true
21+
selfHeal: true
22+
{% endif %}

gitlab-to-argo/inventory/group_vars/all.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ destination_namespace: argo-cd
22
chart_path: "."
33
target_revision: HEAD
44
created_by: gitlab-argo-integration
5-
resource_prefix: gitlab-app
5+
resource_prefix: gitlab-app
6+
syncPolicy: false

0 commit comments

Comments
 (0)