Skip to content

Commit 8205b36

Browse files
committed
feat(datasource): configure jfr-datasource for presigned URL retrieval
1 parent b16c3b5 commit 8205b36

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
@@ -248,6 +248,8 @@ spec:
248248
value: localhost
249249
- name: QUARKUS_HTTP_PORT
250250
value: "8800"
251+
- name: CRYOSTAT_STORAGE_BASE_URI
252+
value: http://{{ $fullName }}-storage:{{ .Values.storage.service.port }}
251253
{{- with (.Values.datasource.config).extra.envVars }}
252254
{{- toYaml . | nindent 10 }}
253255
{{- end }}

charts/cryostat/tests/cryostat_deployment_test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,9 @@ tests:
466466
- equal:
467467
path: spec.template.spec.containers[?(@.name=='cryostat-jfr-datasource')].env[?(@.name=='QUARKUS_HTTP_PORT')].value
468468
value: "8800"
469+
- equal:
470+
path: spec.template.spec.containers[?(@.name=='cryostat-jfr-datasource')].env[?(@.name=='CRYOSTAT_STORAGE_BASE_URI')].value
471+
value: http://RELEASE-NAME-cryostat-storage:8333
469472
- equal:
470473
path: spec.template.spec.containers[?(@.name=='cryostat-jfr-datasource')].ports[0].containerPort
471474
value: 8800

0 commit comments

Comments
 (0)