From 6ef437e6c179c55c70821bff12627a18380e147a Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Tue, 2 Nov 2021 13:31:13 +0100
Subject: [PATCH] Increase source-controller mem limits

Closes: #910
---
 install/flux-patches/source-controller.yaml | 12 ++++++++++++
 install/install-openappstack.sh             |  5 +++++
 2 files changed, 17 insertions(+)
 create mode 100644 install/flux-patches/source-controller.yaml

diff --git a/install/flux-patches/source-controller.yaml b/install/flux-patches/source-controller.yaml
new file mode 100644
index 000000000..87d0f58c6
--- /dev/null
+++ b/install/flux-patches/source-controller.yaml
@@ -0,0 +1,12 @@
+spec:
+  template:
+    spec:
+      containers:
+      - name: manager
+        resources:
+          limits:
+            cpu: "1"
+            memory: 1536Mi
+          requests:
+            cpu: 100m
+            memory: 512Mi
diff --git a/install/install-openappstack.sh b/install/install-openappstack.sh
index b4a5ec04f..55fc6f049 100755
--- a/install/install-openappstack.sh
+++ b/install/install-openappstack.sh
@@ -16,6 +16,11 @@ kubectl patch deployment \
   helm-controller \
   --patch-file "$(dirname "$0")/flux-patches/helm-controller.yaml"
 
+kubectl patch deployment \
+  -n flux-system \
+  source-controller \
+  --patch-file "$(dirname "$0")/flux-patches/source-controller.yaml"
+
 # get current git branch name
 branch=${CI_COMMIT_REF_NAME:-}
 [ -z "$branch" ] && branch=$(git rev-parse --abbrev-ref HEAD)
-- 
GitLab