Skip to content

Commit

Permalink
fix: save image timeout 2 (#1011)
Browse files Browse the repository at this point in the history
* fix: add build timeout during task initialisation

Signed-off-by: Guilhem Barthés <[email protected]>

* chore: increase default value for `builder.saveImageTimeoutSeconds`

Signed-off-by: Guilhem Barthés <[email protected]>

* fix: increase default value for `builder.saveImageTimeoutSeconds`

Signed-off-by: Guilhem Barthés <[email protected]>

* fix: add variable to builder

Signed-off-by: Guilhem Barthés <[email protected]>

* chore: update chart changelog

Signed-off-by: Guilhem Barthés <[email protected]>

---------

Signed-off-by: Guilhem Barthés <[email protected]>
  • Loading branch information
guilhem-barthes authored Oct 11, 2024
1 parent 2ff1696 commit 034c060
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions charts/substra-backend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

<!-- towncrier release notes start -->
## [26.14.1] - 2024-10-11

# Fixed

Save image timeout not set correctly

## [26.14.0] - 2024-10-09

# Added
Expand Down
2 changes: 1 addition & 1 deletion charts/substra-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: substra-backend
home: https://github.com/Substra
version: 26.14.0
version: 26.14.1
appVersion: 0.48.0
kubeVersion: '>= 1.19.0-0'
description: Main package for Substra
Expand Down
2 changes: 1 addition & 1 deletion charts/substra-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ See [UPGRADE.md](https://github.com/Substra/substra-backend/blob/main/charts/sub
| `builder.nodeSelector` | Node labels for pod assignment | `{}` |
| `builder.tolerations` | Toleration labels for pod assignment | `[]` |
| `builder.affinity` | Affinity settings for pod assignment, ignored if `DataSampleStorageInServerMedia` is `true` | `{}` |
| `builder.saveImageTimeoutSeconds` | Amount of seconds before restarting the image save as a blob | `60` |
| `builder.saveImageTimeoutSeconds` | Amount of seconds before restarting the image save as a blob | `180` |
| `builder.persistence.storageClass` | Specify the _StorageClass_ used to provision the volume. Or the default _StorageClass_ will be used. Set it to `-` to disable dynamic provisioning | `""` |
| `builder.persistence.size` | The size of the volume. | `10Gi` |
| `builder.rbac.create` | Create a role and service account for the builder | `true` |
Expand Down
2 changes: 2 additions & 0 deletions charts/substra-backend/templates/statefulset-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ spec:
value: {{ toYaml .Values.builder.kanikoStartup.maxAttempts | quote }}
- name: BUILDER_KANIKO_STARTUP_PENDING_STATE_WAIT_SECONDS
value: {{ toYaml .Values.builder.kanikoStartup.checkDelay | quote }}
- name: IMAGE_SAVING_TIMEOUT_SECONDS
value: {{ .Values.builder.saveImageTimeoutSeconds | quote }}
- name: IMAGE_BUILD_TIMEOUT
value: {{ toYaml .Values.builder.timeout | quote }}
ports:
Expand Down
2 changes: 1 addition & 1 deletion charts/substra-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ builder:
affinity: { }
## @param builder.saveImageTimeoutSeconds Amount of seconds before restarting the image save as a blob
#
saveImageTimeoutSeconds: 60
saveImageTimeoutSeconds: 180


persistence:
Expand Down

0 comments on commit 034c060

Please sign in to comment.