Skip to content

Commit

Permalink
fix: using same migrations image as in deployment and remove ttl for …
Browse files Browse the repository at this point in the history
…migration job (#213)

* fix: using same migrations image as in deployment

* fix: remove TTL seconds after finish to keep the job

* fix: remove TTL seconds after finish to keep the job

* Update charts/testkube-cloud-api/values.yaml

Co-authored-by: ed382 <174873053+ed382@users.noreply.github.com>

* fix: use 0 as default value, docs gen

* fix: use 3 days as default value for migration job ttl

---------

Co-authored-by: ed382 <174873053+ed382@users.noreply.github.com>
  • Loading branch information
exu and ed382 authored Sep 27, 2024
1 parent 6a12ac9 commit 76ed16f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/testkube-cloud-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ A Helm chart for Testkube Cloud API
| api.logServer.secure | string | `"false"` | Log server TLS configuration secure connection |
| api.logServer.skipVerify | string | `"true"` | Log server TLS configuration skip Verify |
| api.migrations.enabled | bool | `false` | Toggle whether to apply migrations for MongoDB |
| api.migrations.ttlSecondsAfterFinished | int | `90` | TTL for the migration job |
| api.migrations.ttlSecondsAfterFinished | int | `259200` | TTL for the migration job, defaults to 3 days |
| api.migrations.useHelmHooks | bool | `true` | Toggle whether to enable pre-install & pre-upgrade hooks |
| api.minio.accessKeyId | string | `""` | MinIO access key id |
| api.minio.certSecret.baseMountPath | string | `"/etc/client-certs/storage"` | Base path to mount the client certificate secret |
Expand Down
2 changes: 1 addition & 1 deletion charts/testkube-cloud-api/templates/migrations-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
{{- end }}
containers:
- name: migrations
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: {{ include "testkube-api.image" . }}
args: ["migrate"]
env:
- name: ENTERPRISE_MODE
Expand Down
4 changes: 2 additions & 2 deletions charts/testkube-cloud-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ api:
enabled: false
# -- Toggle whether to enable pre-install & pre-upgrade hooks
useHelmHooks: true
# -- TTL for the migration job
ttlSecondsAfterFinished: 90
# -- TTL for the migration job, defaults to 3 days
ttlSecondsAfterFinished: 259200
features:
# -- Toggle whether to disable personal organizations when a user signs up for the first time
disablePersonalOrgs: false
Expand Down
2 changes: 1 addition & 1 deletion charts/testkube-enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ A Helm chart for Testkube Enterprise
| testkube-cloud-api.api.logServer.skipVerify | string | `"true"` | Log server TLS configuration skip Verify |
| testkube-cloud-api.api.migrations.enabled | bool | `true` | Toggle whether to run database migrations |
| testkube-cloud-api.api.migrations.image.repository | string | `"kubeshop/testkube-enterprise-api-migrations"` | Migrations image repository |
| testkube-cloud-api.api.migrations.ttlSecondsAfterFinished | int | `90` | |
| testkube-cloud-api.api.migrations.ttlSecondsAfterFinished | int | `259200` | TTL for the migration job, defaults to 3 days |
| testkube-cloud-api.api.migrations.useHelmHooks | bool | `false` | Toggle whether to enable pre-install & pre-upgrade hooks (should be disabled if mongo is installed using this chart) |
| testkube-cloud-api.api.minio.certSecret.baseMountPath | string | `"/etc/client-certs/storage"` | Base path to mount the client certificate secret |
| testkube-cloud-api.api.minio.certSecret.caFile | string | `"ca.crt"` | Path to ca file (used for self-signed certificates) |
Expand Down
5 changes: 3 additions & 2 deletions charts/testkube-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ testkube-cloud-api:
image:
# -- Migrations image repository
repository: kubeshop/testkube-enterprise-api-migrations
# -- clean up finished jobs
ttlSecondsAfterFinished: 90
# -- don't clean up finished jobs (pass value in seconds to clean migrations job after completenes)
# -- TTL for the migration job, defaults to 3 days
ttlSecondsAfterFinished: 259200
mongo: *global_mongo_config
nats: *global_nats_config
minio:
Expand Down

0 comments on commit 76ed16f

Please sign in to comment.