From 3da29ae0e8162c78fe08d34c8b0fbe06868b47ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20G=C3=B3mez?= <64421371+lukasgomez@users.noreply.github.com> Date: Fri, 10 May 2024 09:59:19 +0200 Subject: [PATCH] Enable syncWindows property in Argo Projects (#135) * Enable syncWindows property in Argo Projects * Bump chart version --- charts/argocd-app-bootstrap/Chart.yaml | 2 +- charts/argocd-app-bootstrap/templates/project.yaml | 4 ++++ charts/argocd-app-bootstrap/values.yaml | 11 +++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/charts/argocd-app-bootstrap/Chart.yaml b/charts/argocd-app-bootstrap/Chart.yaml index 212bcaa..f77c20d 100644 --- a/charts/argocd-app-bootstrap/Chart.yaml +++ b/charts/argocd-app-bootstrap/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "1.0.0" description: Helm chart to automatically provision ArgoCD application and projects name: argocd-app-bootstrap -version: 1.0.18 +version: 1.0.19 diff --git a/charts/argocd-app-bootstrap/templates/project.yaml b/charts/argocd-app-bootstrap/templates/project.yaml index 9c81b2f..3e6ace0 100644 --- a/charts/argocd-app-bootstrap/templates/project.yaml +++ b/charts/argocd-app-bootstrap/templates/project.yaml @@ -26,5 +26,9 @@ spec: {{- with $projectSettings.extraRoles }} {{- toYaml . | nindent 4 }} {{- end }} +{{- with $projectSettings.syncWindows }} + syncWindows: + {{- toYaml . | nindent 2 }} +{{- end }} --- {{- end }} diff --git a/charts/argocd-app-bootstrap/values.yaml b/charts/argocd-app-bootstrap/values.yaml index 19f2d88..7d75a0f 100644 --- a/charts/argocd-app-bootstrap/values.yaml +++ b/charts/argocd-app-bootstrap/values.yaml @@ -23,6 +23,17 @@ projects: destinations: [] sourceRepos: [] adminGroups: [] + syncWindows: + # - kind: allow + # schedule: "45 7 * * 1-5" + # duration: "10h" + # timezone: "Europe/Madrid" + # manualSync: true + # - kind: deny + # schedule: "45 11 * * 5-6" + # duration: "6h" + # timezone: "Europe/Madrid" + # manualSync: true # applications: # - name: app-name # enabled: true