From 80a2debc9a291e95af5b58269b2ef4aa98a7a899 Mon Sep 17 00:00:00 2001
From: Maarten de Waard <maarten@greenhost.nl>
Date: Tue, 30 Nov 2021 12:24:06 +0100
Subject: [PATCH] set timeouts for all Flux kustomizations to 20m instead of
 the default (which is the same as its interval)

---
 flux2/cluster/base/core.yaml                             | 1 +
 flux2/cluster/base/infrastructure.yaml                   | 1 +
 flux2/cluster/optional/monitoring/monitoring-config.yaml | 1 +
 flux2/cluster/optional/monitoring/monitoring.yaml        | 1 +
 flux2/cluster/optional/nextcloud/nextcloud.yaml          | 1 +
 flux2/cluster/optional/rocketchat/rocketchat.yaml        | 1 +
 flux2/cluster/optional/velero/velero.yaml                | 1 +
 flux2/cluster/optional/wekan/wekan.yaml                  | 1 +
 flux2/cluster/optional/wordpress/wordpress.yaml          | 1 +
 flux2/cluster/optional/zulip/zulip.yaml                  | 1 +
 10 files changed, 10 insertions(+)

diff --git a/flux2/cluster/base/core.yaml b/flux2/cluster/base/core.yaml
index 8420863f2..dd6307729 100644
--- a/flux2/cluster/base/core.yaml
+++ b/flux2/cluster/base/core.yaml
@@ -8,6 +8,7 @@ spec:
   dependsOn:
     - name: infrastructure
   interval: 1h
+  timeout: 20m
   sourceRef:
     kind: GitRepository
     name: stackspin
diff --git a/flux2/cluster/base/infrastructure.yaml b/flux2/cluster/base/infrastructure.yaml
index bcd11891a..b52e9a870 100644
--- a/flux2/cluster/base/infrastructure.yaml
+++ b/flux2/cluster/base/infrastructure.yaml
@@ -6,6 +6,7 @@ metadata:
   namespace: flux-system
 spec:
   interval: 1h
+  timeout: 20m
   sourceRef:
     kind: GitRepository
     name: stackspin
diff --git a/flux2/cluster/optional/monitoring/monitoring-config.yaml b/flux2/cluster/optional/monitoring/monitoring-config.yaml
index 9952710d3..7f6add763 100644
--- a/flux2/cluster/optional/monitoring/monitoring-config.yaml
+++ b/flux2/cluster/optional/monitoring/monitoring-config.yaml
@@ -6,6 +6,7 @@ metadata:
   namespace: flux-system
 spec:
   interval: 1h
+  timeout: 20m
   dependsOn:
     - name: monitoring
   sourceRef:
diff --git a/flux2/cluster/optional/monitoring/monitoring.yaml b/flux2/cluster/optional/monitoring/monitoring.yaml
index 90e5f5b1e..19b750de3 100644
--- a/flux2/cluster/optional/monitoring/monitoring.yaml
+++ b/flux2/cluster/optional/monitoring/monitoring.yaml
@@ -6,6 +6,7 @@ metadata:
   namespace: flux-system
 spec:
   interval: 1h
+  timeout: 20m
   dependsOn:
     - name: core
     - name: infrastructure
diff --git a/flux2/cluster/optional/nextcloud/nextcloud.yaml b/flux2/cluster/optional/nextcloud/nextcloud.yaml
index a8dc35479..72d189959 100644
--- a/flux2/cluster/optional/nextcloud/nextcloud.yaml
+++ b/flux2/cluster/optional/nextcloud/nextcloud.yaml
@@ -6,6 +6,7 @@ metadata:
   namespace: flux-system
 spec:
   interval: 1h
+  timeout: 20m
   dependsOn:
     - name: core
     - name: infrastructure
diff --git a/flux2/cluster/optional/rocketchat/rocketchat.yaml b/flux2/cluster/optional/rocketchat/rocketchat.yaml
index 8e2924f24..4599b3474 100644
--- a/flux2/cluster/optional/rocketchat/rocketchat.yaml
+++ b/flux2/cluster/optional/rocketchat/rocketchat.yaml
@@ -6,6 +6,7 @@ metadata:
   namespace: flux-system
 spec:
   interval: 1h
+  timeout: 20m
   dependsOn:
     - name: core
     - name: infrastructure
diff --git a/flux2/cluster/optional/velero/velero.yaml b/flux2/cluster/optional/velero/velero.yaml
index 1893f524e..f01a68b6c 100644
--- a/flux2/cluster/optional/velero/velero.yaml
+++ b/flux2/cluster/optional/velero/velero.yaml
@@ -6,6 +6,7 @@ metadata:
   namespace: flux-system
 spec:
   interval: 1h
+  timeout: 20m
   dependsOn:
     - name: core
     - name: infrastructure
diff --git a/flux2/cluster/optional/wekan/wekan.yaml b/flux2/cluster/optional/wekan/wekan.yaml
index c231ba7f3..566a4173b 100644
--- a/flux2/cluster/optional/wekan/wekan.yaml
+++ b/flux2/cluster/optional/wekan/wekan.yaml
@@ -6,6 +6,7 @@ metadata:
   namespace: flux-system
 spec:
   interval: 1h
+  timeout: 20m
   dependsOn:
     - name: core
     - name: infrastructure
diff --git a/flux2/cluster/optional/wordpress/wordpress.yaml b/flux2/cluster/optional/wordpress/wordpress.yaml
index 54510a83c..f610f0078 100644
--- a/flux2/cluster/optional/wordpress/wordpress.yaml
+++ b/flux2/cluster/optional/wordpress/wordpress.yaml
@@ -6,6 +6,7 @@ metadata:
   namespace: flux-system
 spec:
   interval: 1h
+  timeout: 20m
   dependsOn:
     - name: core
     - name: infrastructure
diff --git a/flux2/cluster/optional/zulip/zulip.yaml b/flux2/cluster/optional/zulip/zulip.yaml
index 47bf28fa0..ae67f3ca3 100644
--- a/flux2/cluster/optional/zulip/zulip.yaml
+++ b/flux2/cluster/optional/zulip/zulip.yaml
@@ -6,6 +6,7 @@ metadata:
   namespace: flux-system
 spec:
   interval: 1h
+  timeout: 20m
   dependsOn:
     - name: core
     - name: infrastructure
-- 
GitLab