From 0d608eefe3e89ef90cc7a431d9101f6aee35ab8b 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 be6c2640..02e0db89 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: @@ -141,6 +144,9 @@ spec: jobTemplate: spec: template: + metadata: + labels: + app: {{ include "reana.prefix" . }}-resource-quota-update spec: containers: - name: {{ include "reana.prefix" . }}-resource-quota-update @@ -226,6 +232,9 @@ spec: jobTemplate: spec: template: + metadata: + labels: + app: {{ include "reana.prefix" . }}-retention-rules-apply spec: containers: - name: {{ include "reana.prefix" . }}-retention-rules-apply @@ -319,6 +328,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 273da6fc..694667ac 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