Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Adds optional cache for Report
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ryoo committed Jul 28, 2023
1 parent 75e2296 commit 0b0e711
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/allure-testops/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: allure-testops
version: 2023.5.15
version: 2023.5.16
appVersion: 4.16.4

description: Allure TestOps
Expand Down
31 changes: 31 additions & 0 deletions charts/allure-testops/templates/allure/report-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,37 @@ spec:
value: {{ .Values.report.uploads.storeConsumers | quote }}
- name: ALLURE_TASKEXECUTOR_COREPOOLSIZE
value: {{ .Values.report.taskExecutorCorePoolSize | quote }}
{{- if .Values.report.cache }}
- name: SPRING_REDIS_HOST
value: "{{ template "allure-testops.redis.fullname" . }}"
- name: SPRING_REDIS_PORT
value: "{{ .Values.redis.port }}"
- name: SPRING_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: {{ $secret_name }}
key: "redisPass"
- name: ALLURE_CACHE-TTL_ENABLED
value: "true"
- name: ALLURE_CACHE-TTL_BY-DEFAULT
value: 1m
- name: ALLURE_CACHE-TTL_WIDGETS_AUTOMATION-TREND
value: 1h
- name: ALLURE_CACHE-TTL_WIDGETS_PROJECT-METRIC-TREND
value: 1h
- name: ALLURE_CACHE-TTL_WIDGETS_LAUNCH-DURATION-HISTOGRAM
value: 1h
- name: ALLURE_CACHE-TTL_WIDGETS_LAUNCH-DURATION-HISTOGRAM
value: 1h
- name: ALLURE_CACHE-TTL_WIDGETS_ANALYTIC-PIE-CHART
value: 1h
- name: ALLURE_CACHE-TTL_WIDGETS_TR-COMPLEX-TREND
value: 1h
- name: ALLURE_CACHE-TTL_WIDGETS_TR-STATISTIC-TREND
value: 1h
- name: ALLURE_CACHE-TTL_WIDGETS_TC-LAST-RESULT
value: 1h
{{- end}}
{{- if or (eq .Values.postgresql.external.sslMode "require") (eq .Values.postgresql.external.sslMode "verify-ca") (eq .Values.postgresql.external.sslMode "verify-full") }}
- name: TLS_DB_ENDPOINTS
value: "{{ .Values.postgresql.external.reportHost}}:{{ .Values.postgresql.external.reportPort }}"
Expand Down
1 change: 1 addition & 0 deletions charts/allure-testops/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ uaa:

report:
replicaCount: 1
cache: false
image: allure-report
maxDBConn: 10
maxConcurrency: 5
Expand Down

0 comments on commit 0b0e711

Please sign in to comment.