From 7cf82509b2e611818ec5a56e78d4ad72c12b61d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Barth=C3=A9s?= Date: Fri, 6 Oct 2023 14:01:21 -0400 Subject: [PATCH] fix: builder using builder SA (#754) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: builder using builder SA Signed-off-by: Guilhem Barthés * docs: changelog Signed-off-by: Guilhem Barthés --------- Signed-off-by: Guilhem Barthés --- CHANGELOG.md | 18 ++++++++++++------ charts/substra-backend/CHANGELOG.md | 8 +++++++- .../templates/statefulset-builder.yaml | 2 +- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a5c0f698..a1b48ee6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added + +- Field `asset_type` on `AssetFailureReport` (based on protobuf enum `orchestrator.FailedAssetKind`) ([#727](https://github.com/Substra/substra-backend/pull/727)) +- Celery task `FailableTask` that contains the logic to store the failure report, that can be re-used in different assets. ([#727](https://github.com/Substra/substra-backend/pull/727)) +- Add `FunctionStatus` enum ([#714](https://github.com/Substra/orchestrator/pull/714)) +- BREAKING: Add `status` on `api.Function` (type `FunctionStatus`) ([#714](https://github.com/Substra/substra-backend/pull/714)) + + +### Changed + +- `ComputeTaskFailureReport` renamed in `AssetFailureReport` ([#727](https://github.com/Substra/substra-backend/pull/727)) +- Field `AssetFailureReport.compute_task_key` renamed to `asset_key` ([#727](https://github.com/Substra/substra-backend/pull/727)) ## [0.42.2](https://github.com/Substra/substra-backend/releases/tag/0.42.2) 2023-10-18 @@ -40,18 +52,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - New `SECRET_KEY` optional environment variable ([#671](https://github.com/Substra/substra-backend/pull/671)) - `/api-token-auth/` and the associated tokens can now be disabled through the `EXPIRY_TOKEN_ENABLED` environment variable and `server.allowImplicitLogin` chart value ([#698](https://github.com/Substra/substra-backend/pull/698)) - Tokens issued by `/api-token-auth/` can now be deleted like other API tokens, through a `DELETE` request on the `/active-api-tokens` endpoint ([#698](https://github.com/Substra/substra-backend/pull/698)) -- Field `asset_type` on `AssetFailureReport` (based on protobuf enum `orchestrator.FailedAssetKind`) ([#727](https://github.com/Substra/substra-backend/pull/727)) -- Celery task `FailableTask` that contains the logic to store the failure report, that can be re-used in different assets. ([#727](https://github.com/Substra/substra-backend/pull/727)) -- Add `FunctionStatus` enum ([#263](https://github.com/Substra/orchestrator/pull/263)) -- BREAKING: Add `status` on `api.Function` (type `FunctionStatus`) ([#714](https://github.com/Substra/substra-backend/pull/714)) ### Changed - Increase the number of tasks displayable in frontend workflow [#697](https://github.com/Substra/substra-backend/pull/697) - BREAKING: Change the format of many API responses from `{"message":...}` to `{"detail":...}` ([#705](https://github.com/Substra/substra-backend/pull/705)) -- `ComputeTaskFailureReport` renamed in `AssetFailureReport` ([#727](https://github.com/Substra/substra-backend/pull/727)) -- Field `AssetFailureReport.compute_task_key` renamed to `asset_key` ([#727](https://github.com/Substra/substra-backend/pull/727)) ### Removed diff --git a/charts/substra-backend/CHANGELOG.md b/charts/substra-backend/CHANGELOG.md index ccdfdd871..c7fb5bee0 100644 --- a/charts/substra-backend/CHANGELOG.md +++ b/charts/substra-backend/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [] - Unreleased + +### Fixed + +- Use the SA ` xxx-builder` instead of `xxx-worker` in `builder` + ## [23.0.2] - 2023-10-18 ### Changed @@ -64,7 +70,7 @@ ## [22.8.0] - 2023-08-16 -## Added +### Added - New `server.allowImplicitLogin` field, controlling whether "implicit login" (`Client.login` in the Substra SDK) is enabled diff --git a/charts/substra-backend/templates/statefulset-builder.yaml b/charts/substra-backend/templates/statefulset-builder.yaml index 33fe0658a..b50703336 100644 --- a/charts/substra-backend/templates/statefulset-builder.yaml +++ b/charts/substra-backend/templates/statefulset-builder.yaml @@ -50,7 +50,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - serviceAccountName: {{ template "substra.fullname" . }}-worker + serviceAccountName: {{ template "substra.fullname" . }}-builder containers: - name: builder image: {{ include "substra-backend.images.name" (dict "img" .Values.builder.image "defaultTag" $.Chart.AppVersion) }}