Skip to content

feat: TKC-2763: add support for configuring storage cleanup in enterprise #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion charts/testkube-cloud-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ A Helm chart for Testkube Cloud API
| api.smtp.passwordSecretRef | string | `""` | SMTP secret ref (secret must contain key SMTP_PASSWORD), overrides password field if defined |
| api.smtp.port | int | `587` | SMTP port |
| api.smtp.username | string | `""` | SMTP username |
| api.storage.cleanup.maxStorageSizeGb | int | `-1` | Specify the max storage size in gigabytes after which oldest test artifacts will be rotated until current size <= max storage size. Values lower than 1 disable cleanup. |
| api.storage.cleanup.retentionDays | int | `-1` | Specify the retention period in days for test artifacts. Values lower than 1 disable cleanup. |
| api.tls.agentPort | int | `8443` | Agent gRPCS port |
| api.tls.apiPort | int | `9443` | API HTTPS port |
| api.tls.certManager.issuerGroup | string | `"cert-manager.io"` | Certificate Issuer group (only used if `provider` is set to `cert-manager`) |
Expand Down Expand Up @@ -227,4 +229,4 @@ A Helm chart for Testkube Cloud API
| websocketsIngress.labels | object | `{}` | Additional labels to add to the WebSocket Ingress resource |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
4 changes: 4 additions & 0 deletions charts/testkube-cloud-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ spec:
value: "{{ .Values.audit.cleanup.retentionPeriod }}"
- name: AUDIT_LOG_CLEANUP_CRON_INTERVAL
value: "{{ .Values.audit.cleanup.cronInterval }}"
- name: ENTERPRISE_ARTIFACT_RETENTION_DAYS
value: "{{ .Values.api.storage.cleanup.retentionDays }}"
- name: ENTERPRISE_ARTIFACT_MAX_STORAGE_SIZE_GB
value: "{{ .Values.api.storage.cleanup.maxStorageSizeGb }}"
ports:
- name: {{ if .Values.api.tls.serveHTTPS }}https{{ else }}http{{ end }}
containerPort: {{ if .Values.api.tls.serveHTTPS }}{{ .Values.api.tls.apiPort }}{{ else }}8090{{ end }}
Expand Down
6 changes: 6 additions & 0 deletions charts/testkube-cloud-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ api:
keyPath: /tmp/serving-cert/key.pem
# -- S3 bucket in which outputs are stored
outputsBucket: testkube-cloud-outputs
storage:
cleanup:
# -- Specify the retention period in days for test artifacts. Values lower than 1 disable cleanup.
retentionDays: -1
# -- Specify the max storage size in gigabytes after which oldest test artifacts will be rotated until current size <= max storage size. Values lower than 1 disable cleanup.
maxStorageSizeGb: -1
# -- API address (used in invitation emails) (example `https://api.testkube.xyz`)
apiAddress: ""
# -- Dashboard address (used in invitation emails) (example `https://cloud.testkube.xyz`)
Expand Down
4 changes: 3 additions & 1 deletion charts/testkube-enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ A Helm chart for Testkube Enterprise
| testkube-cloud-api.api.smtp.passwordSecretRef | string | `""` | SMTP secret ref (secret must contain key SMTP_PASSWORD), overrides password field if defined |
| testkube-cloud-api.api.smtp.port | int | `587` | SMTP port |
| testkube-cloud-api.api.smtp.username | string | `""` | SMTP username |
| testkube-cloud-api.api.storage.cleanup.maxStorageSizeGb | int | `-1` | Specify the max storage size in gigabytes after which oldest test artifacts will be rotated until current size <= max storage size. Values lower than 1 disable cleanup. |
| testkube-cloud-api.api.storage.cleanup.retentionDays | int | `-1` | Specify the retention period in days for test artifacts. Values lower than 1 disable cleanup. |
| testkube-cloud-api.api.tls.certManager.issuerKind | string | `"ClusterIssuer"` | Certificate Issuer kind (only used if `provider` is set to `cert-manager`) |
| testkube-cloud-api.api.tls.tlsSecret | string | `"testkube-enterprise-api-tls"` | |
| testkube-cloud-api.audit.cleanup.cronInterval | string | `"0 3 * * *"` | Cron expression for audit log cleanup. Timezone is UTC. Only simple cron expressions are supported, '/', '-', and ',' expression are not supported. |
Expand Down Expand Up @@ -299,4 +301,4 @@ A Helm chart for Testkube Enterprise
| testkube-worker-service.securityContext | object | `{"readOnlyRootFilesystem":true}` | Container Security Context |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
6 changes: 6 additions & 0 deletions charts/testkube-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,12 @@ testkube-cloud-api:
# -- Audit log retention period in days
retentionPeriod: 30
api:
storage:
cleanup:
# -- Specify the retention period in days for test artifacts. Values lower than 1 disable cleanup.
retentionDays: -1
# -- Specify the max storage size in gigabytes after which oldest test artifacts will be rotated until current size <= max storage size. Values lower than 1 disable cleanup.
maxStorageSizeGb: -1
features:
# -- Toggle whether to disable personal organizations when a user signs up for the first time
disablePersonalOrgs: false
Expand Down
Loading