From 005e88d91e4afbbaa580a6a61a15cee238c20c75 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 22 Oct 2026 21:25:53 +0500 Subject: [PATCH] drawings/uralkal: workflow env for DWG export drawings-api builds its workflows client from WORKFLOW_HOST, which no cluster set, so POST /internal/v1/exports failed with 'unsupported protocol scheme'. Add WORKFLOW_HOST and the other export settings from the drawings-api chart with uralkal service addresses (processing, drawings, attachments). --- apps/drawings/uralkal/backend.yaml | 46 ++++++++++++++++++++++++ apps/drawings/uralkal/kustomization.yaml | 5 +++ 2 files changed, 51 insertions(+) create mode 100644 apps/drawings/uralkal/backend.yaml diff --git a/apps/drawings/uralkal/backend.yaml b/apps/drawings/uralkal/backend.yaml new file mode 100644 index 0000000..fc21954 --- /dev/null +++ b/apps/drawings/uralkal/backend.yaml @@ -0,0 +1,46 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: backend + namespace: drawings +spec: + values: + services: + backend: + envs: + - name: POSTGRES_POOL_SIZE + value: + _default: "3" + + - name: API_ADDRESS + value: + _default: "0.0.0.0:8000" + + - name: ENABLE_SSL + value: + _default: "0" + + - name: WORKFLOW_HOST + value: + _default: "http://backend-svc.processing.svc.cluster.local/" + + - name: IMAGE_NAME_EXPORT_TO_DWG + value: + _default: "cross-sections-to-dwg" + + - name: IMAGE_TAG + value: + _default: "develop" + + - name: TASK_VERSION + value: + _default: "1" + + - name: DRAWING_INTERNAL_URL + value: + _default: "http://backend-service.drawings.svc.cluster.local:8000/" + + - name: ATTACHMENT_URL + value: + _default: "http://attachments-service.attachments.svc.cluster.local:8000" diff --git a/apps/drawings/uralkal/kustomization.yaml b/apps/drawings/uralkal/kustomization.yaml index 27bb5cb..65404bc 100644 --- a/apps/drawings/uralkal/kustomization.yaml +++ b/apps/drawings/uralkal/kustomization.yaml @@ -2,3 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base +patches: + - path: backend.yaml + target: + kind: HelmRelease + name: backend