From a288636f295e99d28b2d3e1b83095e0c5670d5f3 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Wed, 7 Aug 2024 11:41:00 +0200 Subject: [PATCH] fix(helm): allow interactive-session-cleanup job to access RWC (#820) Closes reanahub/reana-server#694 --- helm/reana/templates/cronjobs.yaml | 12 ++++++++++++ helm/reana/templates/reana-workflow-controller.yaml | 3 +++ 2 files changed, 15 insertions(+) diff --git a/helm/reana/templates/cronjobs.yaml b/helm/reana/templates/cronjobs.yaml index 234b27ef..eb4e65a8 100644 --- a/helm/reana/templates/cronjobs.yaml +++ b/helm/reana/templates/cronjobs.yaml @@ -16,6 +16,9 @@ spec: jobTemplate: spec: template: + metadata: + labels: + app: {{ include "reana.prefix" . }}-system-status spec: serviceAccountName: {{ include "reana.prefixed_infrastructure_svaccount_name" . }} containers: @@ -139,6 +142,9 @@ spec: jobTemplate: spec: template: + metadata: + labels: + app: {{ include "reana.prefix" . }}-resource-quota-update spec: containers: - name: {{ include "reana.prefix" . }}-resource-quota-update @@ -222,6 +228,9 @@ spec: jobTemplate: spec: template: + metadata: + labels: + app: {{ include "reana.prefix" . }}-retention-rules-apply spec: containers: - name: {{ include "reana.prefix" . }}-retention-rules-apply @@ -313,6 +322,9 @@ spec: jobTemplate: spec: template: + metadata: + labels: + app: {{ include "reana.prefix" . }}-interactive-session-cleanup spec: serviceAccountName: {{ include "reana.prefixed_infrastructure_svaccount_name" . }} containers: diff --git a/helm/reana/templates/reana-workflow-controller.yaml b/helm/reana/templates/reana-workflow-controller.yaml index b18429e3..73776964 100644 --- a/helm/reana/templates/reana-workflow-controller.yaml +++ b/helm/reana/templates/reana-workflow-controller.yaml @@ -30,6 +30,9 @@ spec: - podSelector: matchLabels: app: {{ include "reana.prefix" . }}-server + - podSelector: + matchLabels: + app: {{ include "reana.prefix" . }}-interactive-session-cleanup --- apiVersion: apps/v1 kind: Deployment