Skip to content

Commit

Permalink
Change cdn URL
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleValentini1 committed Oct 10, 2024
1 parent 2058e32 commit 6e64ab2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 20 deletions.
5 changes: 1 addition & 4 deletions helm-chart/environments/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ objectStore:
resource_template_path: RESOURCE/files/[RESOURCE_TYPE]

cdn:
resourceBasePath: "https://resources.dev.atmlayer-pagopa.it"
offset_path: RESOURCE/
credentialsSecretEnabled: true
credentialsSecretName: "pagopa-dev-atm-layer-model-cdn-base-path"
credentialsSecretKeys:
cdn_base_path: CDN_BASE_PATH

secretProviderClass:
enabled: true
Expand Down
5 changes: 1 addition & 4 deletions helm-chart/environments/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ objectStore:
resource_template_path: RESOURCE/files/[RESOURCE_TYPE]

cdn:
resourceBasePath: "https://resources.atmlayer-pagopa.it"
offset_path: RESOURCE/
credentialsSecretEnabled: true
credentialsSecretName: "pagopa-prod-atm-layer-model-cdn-base-path"
credentialsSecretKeys:
cdn_base_path: CDN_BASE_PATH

secretProviderClass:
enabled: true
Expand Down
6 changes: 2 additions & 4 deletions helm-chart/environments/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ objectStore:
resource_template_path: RESOURCE/files/[RESOURCE_TYPE]

cdn:
resourceBasePath: "https://resources.uat.atmlayer-pagopa.it"
offset_path: RESOURCE/
credentialsSecretEnabled: true
credentialsSecretName: "pagopa-uat-atm-layer-model-cdn-base-path"
credentialsSecretKeys:
cdn_base_path: CDN_BASE_PATH


secretProviderClass:
enabled: true
Expand Down
10 changes: 3 additions & 7 deletions helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,9 @@ spec:
value: "{{ .Values.tracing.endpointBasePath }}"
- name: TRACING_ENABLE_JDBC_MONITORING
value: "{{ .Values.tracing.enableJDBCMonitoring }}"
{{- if .Values.cdn.credentialsSecretEnabled }}
- name: CDN_BASE_PATH
valueFrom:
secretKeyRef:
name: {{ .Values.cdn.credentialsSecretName }}
key: {{ .Values.cdn.credentialsSecretKeys.cdn_base_path }}
{{- end }}
- name: RESOURCES_BASE_PATH
value: "{{ .Values.cdn.resourceBasePath }}"

volumeMounts:
{{- if .Values.secretProviderClass.enabled }}
- name: secrets-store-inline
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ quarkus.rest-client.process-deploy.url=${MODEL_PROCESS_BASE_PATH:http://pagopa-d
###################
# CDN
###################
cdn.base-url=${CDN_BASE_PATH}
cdn.base-url=${RESOURCES_BASE_PATH}
cdn.offset-path=${CDN_OFFSET_PATH:RESOURCE/}
#quarkus.log.console.format=%d{HH:mm:ss} %-5p traceId=%X{traceId}, parentId=%X{parentId}, spanId=%X{spanId}, sampled=%X{sampled} [%c{2.}] (%t) %s%e%n
###################
Expand Down

0 comments on commit 6e64ab2

Please sign in to comment.