Skip to content

Commit f425d36

Browse files
committed
feat: add a flag to deactivate auto-sync on applications
1 parent 222b5c4 commit f425d36

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

charts/dso-argocd-zone/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: dso-argocd-zone
33
description: Creates an ApplicationSet that will scan and deploy all Console-managed applications for its zone (multiple clusters).
44
type: application
5-
version: 1.0.3
5+
version: 1.0.4
66
appVersion: 1.0.0
77
maintainers:
88
- name: cloud-pi-native

charts/dso-argocd-zone/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# dso-argocd-zone
22

3-
![Version: 1.0.3](https://img.shields.io/badge/Version-1.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
3+
![Version: 1.0.4](https://img.shields.io/badge/Version-1.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
44

55
Creates an ApplicationSet that will scan and deploy all Console-managed applications for its zone (multiple clusters).
66

@@ -14,6 +14,7 @@ Creates an ApplicationSet that will scan and deploy all Console-managed applicat
1414

1515
| Key | Type | Default | Description |
1616
|-----|------|---------|-------------|
17+
| autosync | bool | `true` | Wether to activate auto-sync on each Application or not |
1718
| clusters | list | `[]` | List of managed cluster names for the entire zone |
1819
| dsoZoneRepo | string | `"https://gitlab.com/infra/zone.git"` | Repository URL where DSO Cosnole stores application specifications that must be applied by ArgoCD in current zone |
1920
| vault.kvName | string | `"zone-kv"` | Name of the key-value store to use for retreiving zone secrets |

charts/dso-argocd-zone/templates/dso-appset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ spec:
6161
destination:
6262
server: https://kubernetes.default.svc
6363
namespace: {{ .Release.Namespace }}
64+
{{- if .Values.autosync }}
6465
syncPolicy:
6566
automated:
6667
prune: true
6768
selfHeal: true
69+
{{- end }}

charts/dso-argocd-zone/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# -- Repository URL where DSO Cosnole stores application specifications that must be applied by ArgoCD in current zone
22
dsoZoneRepo: https://gitlab.com/infra/zone.git
33

4+
# -- Wether to activate auto-sync on each Application or not
5+
autosync: true
6+
47
vault:
58
# -- URL of the Vualt instance storing zone secrets (like kubeconfigs)
69
url: test.com

0 commit comments

Comments
 (0)