From 8d6ecbdb78880c04b84734074390fdad16ec3c5c Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Fri, 10 Feb 2023 00:42:34 +0100 Subject: [PATCH] fix(gitlab-runner): Automatically select the current namespace --- apps/base/gitlab-runner/pod-cleanup.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/base/gitlab-runner/pod-cleanup.yaml b/apps/base/gitlab-runner/pod-cleanup.yaml index f1102cd8c..e642047f2 100644 --- a/apps/base/gitlab-runner/pod-cleanup.yaml +++ b/apps/base/gitlab-runner/pod-cleanup.yaml @@ -52,6 +52,12 @@ spec: containers: - name: gitlab-runner-pod-cleanup image: registry.gitlab.com/gitlab-org/ci-cd/gitlab-runner-pod-cleanup:latest + env: + - name: POD_CLEANUP_KUBERNETES_NAMESPACES + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace resources: requests: cpu: 10m -- GitLab