From 29b50e7b02d78eed334d7f175dc3518ac9baa4d2 Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Wed, 24 Nov 2021 14:18:10 +0100
Subject: [PATCH] Update flux to 0.24.0

---
 .gitlab/issue_templates/update_all_components.md | 3 ++-
 Dockerfile                                       | 2 +-
 ansible/group_vars/all/stackspin.yml             | 2 +-
 docs/installation/install_stackspin.rst          | 2 +-
 install/flux-version-check.sh                    | 4 ++--
 5 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.gitlab/issue_templates/update_all_components.md b/.gitlab/issue_templates/update_all_components.md
index 03df28802..2dcba982f 100644
--- a/.gitlab/issue_templates/update_all_components.md
+++ b/.gitlab/issue_templates/update_all_components.md
@@ -1,9 +1,10 @@
 To update all applications, check the following files:
 
+* [ ] flux: I.e. `sed -i 's/0.20.1/0.24.0/g' Dockerfile install/flux-version-check.sh docs/installation/install_stackspin.rst ansible/group_vars/all/stackspin.yml`
+
 * `Dockerfile`:
   * [ ] All apk app versions
   * [ ] All non-apk app versions in `Dockerfile`, especially:
-    * [ ] flux (Make sure the version is the same as in `ansible/group_vars/all/stackspin.yml`, `docs/installation/install_stackspin.rst` and `install/flux-version-check.sh`)
 * [ ] Mitogen version in `ansible/plugins` (https://github.com/mitogen-hq/mitogen/releases)
 
 In `ansible/group_vars/all/stackspin.yml`:
diff --git a/Dockerfile b/Dockerfile
index 872f769bf..996172b26 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,7 +9,7 @@ ENV TAIKO_SKIP_CHROMIUM_DOWNLOAD=true
 ENV TAIKO_BROWSER_PATH=/usr/bin/chromium-browser
 ENV TAIKO_BROWSER_ARGS=--no-sandbox,--start-maximized,--disable-dev-shm-usage,--ignore-certificate-errors
 
-ADD https://github.com/fluxcd/flux2/releases/download/v0.20.1/flux_0.20.1_linux_amd64.tar.gz /tmp/
+ADD https://github.com/fluxcd/flux2/releases/download/v0.24.0/flux_0.24.0_linux_amd64.tar.gz /tmp/
 COPY ./test/pytest/le-staging-bundle.pem /usr/local/share/ca-certificates/le-staging-bundle.pem
 COPY ./requirements.txt /requirements.txt
 RUN \
diff --git a/ansible/group_vars/all/stackspin.yml b/ansible/group_vars/all/stackspin.yml
index db0c81d3c..ab4522a19 100644
--- a/ansible/group_vars/all/stackspin.yml
+++ b/ansible/group_vars/all/stackspin.yml
@@ -9,7 +9,7 @@ ansible_python_interpreter: "/usr/bin/env python3"
 # Application versions
 flux:
   # https://github.com/fluxcd/flux2/releases
-  version: 0.20.1
+  version: 0.24.0
 
 k3s:
   # https://github.com/k3s-io/k3s/releases
diff --git a/docs/installation/install_stackspin.rst b/docs/installation/install_stackspin.rst
index 57fd71eaf..4ec26aed3 100644
--- a/docs/installation/install_stackspin.rst
+++ b/docs/installation/install_stackspin.rst
@@ -53,7 +53,7 @@ Prerequisites
 -------------
 
 - ``kubectl`` (`installation instructions <https://kubernetes.io/docs/tasks/tools/#kubectl>`__)
-- ``flux version 0.20.1`` `Download flux_0.20.1_linux_amd64.tar.gz <https://github.com/fluxcd/flux2/releases/download/v0.20.1/flux_0.20.1_linux_amd64.tar.gz>`_
+- ``flux version 0.24.0`` `Download flux_0.24.0_linux_amd64.tar.gz <https://github.com/fluxcd/flux2/releases/download/v0.24.0/flux_0.24.0_linux_amd64.tar.gz>`_
 
 Copy the file ``install/.flux.env.example`` to your cluster dir
 ``clusters/stackspin.example.org/.flux.env``. This file contains the last bit of
diff --git a/install/flux-version-check.sh b/install/flux-version-check.sh
index 88cd01b60..7aab9da5b 100644
--- a/install/flux-version-check.sh
+++ b/install/flux-version-check.sh
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-if [ "$(flux --version)" != "flux version 0.20.1" ]; then
-  echo "The Stackspin installation only works with Flux version 0.20.1"
+if [ "$(flux --version)" != "flux version 0.24.0" ]; then
+  echo "The Stackspin installation only works with Flux version 0.24.0"
   exit 1
 fi
-- 
GitLab