Skip to content

Commit c7e0fa0

Browse files
committed
feat(datasource): configure jfr-datasource for presigned URL retrieval
1 parent 9d8aa69 commit c7e0fa0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/cryostat/templates/cryostat_deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ spec:
244244
value: localhost
245245
- name: QUARKUS_HTTP_PORT
246246
value: "8800"
247+
- name: CRYOSTAT_STORAGE_BASE_URI
248+
value: http://{{ $fullName }}-storage:{{ .Values.storage.service.port }}
247249
{{- with (.Values.datasource.config).extra.envVars }}
248250
{{- toYaml . | nindent 10 }}
249251
{{- end }}

charts/cryostat/tests/cryostat_deployment_test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,9 @@ tests:
452452
- equal:
453453
path: spec.template.spec.containers[?(@.name=='cryostat-jfr-datasource')].env[?(@.name=='QUARKUS_HTTP_PORT')].value
454454
value: "8800"
455+
- equal:
456+
path: spec.template.spec.containers[?(@.name=='cryostat-jfr-datasource')].env[?(@.name=='CRYOSTAT_STORAGE_BASE_URI')].value
457+
value: http://RELEASE-NAME-cryostat-storage:8333
455458
- equal:
456459
path: spec.template.spec.containers[?(@.name=='cryostat-jfr-datasource')].ports[0].containerPort
457460
value: 8800

0 commit comments

Comments
 (0)