From fc7834813fd5f200cf4233759698616d0ac75060 Mon Sep 17 00:00:00 2001 From: lukasgomez Date: Fri, 10 May 2024 09:55:58 +0200 Subject: [PATCH] Enable syncWindows property in Argo Projects --- charts/argocd-app-bootstrap/templates/project.yaml | 4 ++++ charts/argocd-app-bootstrap/values.yaml | 11 +++++++++++ 2 files changed, 15 insertions(+) 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