From 5220891e203ec915403f8e6e10191faf7f253efc Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 24 Jun 2023 19:15:31 +0200
Subject: [PATCH] fix(gitlab-runner): Replace outdated helm value

This patch drops the usage of the no longer working
`runner.podAnnotion` that was used to feed the pod-cleanup controller,
and replace it with the usage of the activeDeadlineSeconds Feature Flag.
This way Gitlab will utilise the activeDeadlineSeconds feature of
Kubernetes to ensure that Jobs come to an end.
---
 apps/base/gitlab-runner/release.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/apps/base/gitlab-runner/release.yaml b/apps/base/gitlab-runner/release.yaml
index 2d084803c..710ca95af 100644
--- a/apps/base/gitlab-runner/release.yaml
+++ b/apps/base/gitlab-runner/release.yaml
@@ -77,6 +77,6 @@ data:
       limits:
         memory: 256Mi
         cpu: 200m
-    runners:
-      podAnnotations:
-        "pod-cleanup.gitlab.com/ttl": "6h"
\ No newline at end of file
+    envVars:
+      - name: FF_USE_POD_ACTIVE_DEADLINE_SECONDS
+        value: true
-- 
GitLab