Skip to content

Commit

Permalink
Update CADIP helm configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
vprivat-ads committed Oct 25, 2024
1 parent f56fd24 commit 38a489c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 34 deletions.
40 changes: 20 additions & 20 deletions charts/rs-server-cadip/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ data:
{{ $k }}:
auth:
type: TokenAuth
auth_uri: '{{ $v.endpoint.url.root }}/oauth2/token'
auth_uri: '{{ $v.endpoint.url.token }}'
token_type: json
token_key: access_token
request_method: POST
Expand All @@ -35,7 +35,7 @@ data:
search:
type: ODataV4Search
api_endpoint: '{{ $v.endpoint.url.file }}'
api_endpoint: '{{ $v.endpoint.url.odata }}/Files'
need_auth: true
results_entry: responses | $
metadata_mapping:
Expand Down Expand Up @@ -81,9 +81,9 @@ data:
- '$.PublicationDate'
href:
- null
- '{{ $v.endpoint.url.file }}({id})/$value'
- '{{ $v.endpoint.url.odata }}/Files({id})/$value'
geometry: 'POLYGON((180 -90, 180 90, -180 90, -180 -90, 180 -90))'
downloadLink: '{{ $v.endpoint.url.file }}({id})/$value'
downloadLink: '{{ $v.endpoint.url.odata }}/Files({id})/$value'
title: '$.Name'
free_text_search_operations:
Expand All @@ -104,15 +104,15 @@ data:
download:
type: HTTPDownload
base_uri: '{{ $v.endpoint.url.file }}'
base_uri: '{{ $v.endpoint.url.odata }}/Files'
metadata_mapping:
uid: '$.Id'
downloadLink: '{{ $v.endpoint.url.file }}({uid})/$value'
downloadLink: '{{ $v.endpoint.url.odata }}/Files({uid})/$value'
{{ $k }}_session:
auth:
type: TokenAuth
auth_uri: '{{ $v.endpoint.url.root }}/oauth2/token'
auth_uri: '{{ $v.endpoint.url.token }}'
token_type: json
token_key: access_token
request_method: POST
Expand All @@ -122,7 +122,7 @@ data:
collection: Sentinel1
search:
type: ODataV4Search
api_endpoint: '{{ $v.endpoint.url.session }}'
api_endpoint: '{{ $v.endpoint.url.odata }}/Sessions'
need_auth: true
results_entry: responses | $
metadata_mapping:
Expand Down Expand Up @@ -204,7 +204,7 @@ data:
- "$.PublicationDate"
href:
- null
- '{{ $v.endpoint.url.file }}({id})/$value'
- '{{ $v.endpoint.url.odata }}/Sessions({id})/$value'
geometry: "POLYGON((180 -90, 180 90, -180 90, -180 -90, 180 -90))"
title: "$.Name"
Expand All @@ -228,10 +228,10 @@ data:
download:
type: HTTPDownload
base_uri: '{{ $v.endpoint.url.session }}'
base_uri: '{{ $v.endpoint.url.odata }}/Sessions'
metadata_mapping:
uid: "$.Id"
downloadLink: "{{ $v.endpoint.url.session }}({uid})/$value"
downloadLink: "{{ $v.endpoint.url.odata }}/Sessions({uid})/$value"
{{ end }}
---
apiVersion: v1
Expand All @@ -257,7 +257,7 @@ data:
search:
type: ODataV4Search
api_endpoint: '{{ $v.endpoint.url.file }}'
api_endpoint: '{{ $v.endpoint.url.odata }}/Files'
need_auth: true
results_entry: responses | $
metadata_mapping:
Expand Down Expand Up @@ -303,9 +303,9 @@ data:
- '$.PublicationDate'
href:
- null
- '{{ $v.endpoint.url.file }}({id})/$value'
- '{{ $v.endpoint.url.odata }}/Files({id})/$value'
geometry: 'POLYGON((180 -90, 180 90, -180 90, -180 -90, 180 -90))'
downloadLink: '{{ $v.endpoint.url.file }}({id})/$value'
downloadLink: '{{ $v.endpoint.url.odata }}/Files({id})/$value'
title: '$.Name'
free_text_search_operations:
Expand All @@ -326,10 +326,10 @@ data:
download:
type: HTTPDownload
base_uri: '{{ $v.endpoint.url.file }}'
base_uri: '{{ $v.endpoint.url.odata }}/Files'
metadata_mapping:
uid: '$.Id'
downloadLink: '{{ $v.endpoint.url.file }}({uid})/$value'
downloadLink: '{{ $v.endpoint.url.odata }}/Files({uid})/$value'
{{ $k }}_session:
auth:
Expand All @@ -344,7 +344,7 @@ data:
collection: Sentinel1
search:
type: ODataV4Search
api_endpoint: '{{ $v.endpoint.url.session }}'
api_endpoint: '{{ $v.endpoint.url.odata }}/Sessions'
need_auth: true
results_entry: responses | $
metadata_mapping:
Expand Down Expand Up @@ -426,7 +426,7 @@ data:
- "$.PublicationDate"
href:
- null
- '{{ $v.endpoint.url.file }}({id})/$value'
- '{{ $v.endpoint.url.odata }}/Sessions({id})/$value'
geometry: "POLYGON((180 -90, 180 90, -180 90, -180 -90, 180 -90))"
title: "$.Name"
Expand All @@ -450,10 +450,10 @@ data:
download:
type: HTTPDownload
base_uri: '{{ $v.endpoint.url.session }}'
base_uri: '{{ $v.endpoint.url.odata }}/Sessions'
metadata_mapping:
uid: "$.Id"
downloadLink: "{{ $v.endpoint.url.session }}({uid})/$value"
downloadLink: "{{ $v.endpoint.url.odata }}/Sessions({uid})/$value"
{{ end }}
---
apiVersion: v1
Expand Down
23 changes: 9 additions & 14 deletions charts/rs-server-cadip/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ app:
workDir: /app
# -- Config directory for the application
confDir: /app/conf
# -- Station configuration file for the application
stationConfigFile: stations_cfg.json
# -- Cadip search configuration file for the application
cadipSearchConfigFile: cadip_search_config.yaml
# -- EODAG configuration file for the application. If useTokenModule is true the adgs_ws_config_token_module.yaml
# -- shall be used. When useTokenModule is false, the adgs_ws_config.yaml shall be used.
# -- Set properly the EODAG_ADGS_CONFIG env var.
# -- EODAG configuration file for the application. If useTokenModule is true the cadip_ws_config_token_module.yaml
# -- shall be used. When useTokenModule is false, the cadip_ws_config.yaml shall be used.
# -- Set properly the EODAG_CADIP_CONFIG env var.
eodagConfigFile: cadip_ws_config.yaml
eodagConfigFileTokenModule: cadip_ws_config_token_module.yaml
# -- The method for loading the token for external stations: use the custom module or
Expand All @@ -47,23 +45,20 @@ app:
endpoint:
# -- CADIP station URL
url:
root: http://mockup-station-cadip-cadip-svc.processing.svc.cluster.local:8080
file: http://mockup-station-cadip-cadip-svc.processing.svc.cluster.local:8080/Files
session: http://mockup-station-cadip-cadip-svc.processing.svc.cluster.local:8080/Sessions
token: http://mockup-station-cadip-cadip-svc.processing.svc.cluster.local:8080/oauth2/token
odata: http://mockup-station-cadip-cadip-svc.processing.svc.cluster.local:8080
# @ignored
sgs:
endpoint:
url:
root: http://mockup-station-cadip-sgs-svc.processing.svc.cluster.local:8080
file: http://mockup-station-cadip-sgs-svc.processing.svc.cluster.local:8080/Files
session: http://mockup-station-cadip-sgs-svc.processing.svc.cluster.local:8080/Sessions
token: http://mockup-station-cadip-sgs-svc.processing.svc.cluster.local:8080/oauth2/token
odata: http://mockup-station-cadip-sgs-svc.processing.svc.cluster.local:8080
# @ignored
mti:
endpoint:
url:
root: http://mockup-station-cadip-mti-svc.processing.svc.cluster.local:8080
file: http://mockup-station-cadip-mti-svc.processing.svc.cluster.local:8080/Files
session: http://mockup-station-cadip-mti-svc.processing.svc.cluster.local:8080/Sessions
token: http://mockup-station-cadip-mti-svc.processing.svc.cluster.local:8080/oauth2/token
odata: http://mockup-station-cadip-mti-svc.processing.svc.cluster.local:8080
# -- URL of the API Key Manager service
uacURL: http://apikeymanager.processing.svc.cluster.local:8000/auth/check_key

Expand Down

0 comments on commit 38a489c

Please sign in to comment.