From 1ec2be4cc720ff4f45a8dd135ffaac678c493cca Mon Sep 17 00:00:00 2001 From: Kilian Boute Date: Fri, 10 Jul 2026 17:06:41 +0000 Subject: [PATCH] feat(hub-api): inject WORKFLOW_DEFINITIONS env so config workflows surface in the API hub-api reads WORKFLOW_DEFINITIONS (the same enabled definition set the workflows engine consumes, assembled via kerberoshub.workflows.workflowDefinitions) read-only to surface config workflows alongside DB/user workflows. Previously only the engine received this env, so hub-api returned an empty config-workflow list and manual/on-demand config workflows never appeared in GET /workflows. --- charts/hub/templates/kerberos-hub/hub-api.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/charts/hub/templates/kerberos-hub/hub-api.yaml b/charts/hub/templates/kerberos-hub/hub-api.yaml index 59bfc48..9d7981e 100644 --- a/charts/hub/templates/kerberos-hub/hub-api.yaml +++ b/charts/hub/templates/kerberos-hub/hub-api.yaml @@ -259,6 +259,15 @@ spec: - name: QUEUE_NAME value: "{{ .Values.queueName }}" + # Deployment-global workflow definitions (WORKFLOW_DEFINITIONS): the + # SAME set the workflows engine consumes, assembled from the enabled + # definitions under kerberoshub.workflows.definitions (see + # kerberos-pipeline/_workflows-helpers.tpl). hub-api reads these + # read-only to surface config workflows alongside the user workflows + # it stores in the database; the config workflows are never persisted. + - name: WORKFLOW_DEFINITIONS + value: {{ include "kerberoshub.workflows.workflowDefinitions" . | quote }} + # Stripe for billing - name: STRIPE_KEY value: "{{ .Values.kerberoshub.api.stripe.privateKey }}"