Skip to content

Commit 2e6edf8

Browse files
authored
Update helm chart templates and values to the latest config.yml template (#1016)
1 parent 75738da commit 2e6edf8

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

docker/helm/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
22
name: pycsw
33
description: A Helm chart for pycsw
4-
version: 1.4.1
4+
version: 1.4.2
55
appVersion: 3.0.0-dev0

docker/helm/templates/pycsw-configmap.yaml

+11-5
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ data:
6161
{{- end }}
6262
{{ end }}
6363
manager:
64-
{{ if .Values.pycsw.config.manager.transactions }} transactions: {{ .Values.pycsw.config.manager.transactions }}
65-
{{ end }}{{ if .Values.pycsw.config.manager.allowed_ips }} allowed_ips:
64+
transactions: {{ .Values.pycsw.config.manager.transactions }}
65+
{{ if .Values.pycsw.config.manager.allowed_ips }} allowed_ips:
6666
{{- range $.Values.pycsw.config.manager.allowed_ips }}
6767
- {{ . }}
6868
{{- end }}
@@ -79,9 +79,14 @@ data:
7979
{{ end }}{{ if .Values.pycsw.config.metadata.identification.keywords_type }} keywords_type: {{ .Values.pycsw.config.metadata.identification.keywords_type }}
8080
{{ end }}{{ if .Values.pycsw.config.metadata.identification.fees }} fees: {{ .Values.pycsw.config.metadata.identification.fees }}
8181
{{ end }}{{ if .Values.pycsw.config.metadata.identification.accessconstraints }} accessconstraints: {{ .Values.pycsw.config.metadata.identification.accessconstraints }}
82+
{{ end }}{{ if .Values.pycsw.config.metadata.identification.terms_of_service }} terms_of_service: {{ .Values.pycsw.config.metadata.identification.terms_of_service }}
83+
{{ end }}{{ if .Values.pycsw.config.metadata.identification.url }} url: {{ .Values.pycsw.config.metadata.identification.url }}
84+
{{ end }} license:
85+
{{ if .Values.pycsw.config.metadata.license.name }} name: {{ .Values.pycsw.config.metadata.license.name }}
86+
{{ end }}{{ if .Values.pycsw.config.metadata.license.url }} url: {{ .Values.pycsw.config.metadata.license.url }}
8287
{{ end }} provider:
8388
{{ if .Values.pycsw.config.metadata.provider.name }} name: {{ .Values.pycsw.config.metadata.provider.name }}
84-
{{ end }}{{ if .Values.pycsw.config.metadata.provider_url }} url: {{ .Values.pycsw.config.metadata.provider.url }}
89+
{{ end }}{{ if .Values.pycsw.config.metadata.provider.url }} url: {{ .Values.pycsw.config.metadata.provider.url }}
8590
{{ end }} contact:
8691
{{ if .Values.pycsw.config.metadata.contact.name }} name: {{ .Values.pycsw.config.metadata.contact.name }}
8792
{{ end }}{{ if .Values.pycsw.config.metadata.contact.position }} position: {{ .Values.pycsw.config.metadata.contact.position }}
@@ -113,15 +118,16 @@ data:
113118
{{ end }}{{ if .Values.pycsw.config.metadata.inspire.contact_name }} contact_name: {{ .Values.pycsw.config.metadata.inspire.contact_name }}
114119
{{ end }}{{ if .Values.pycsw.config.metadata.inspire.contact_email }} contact_email: {{ .Values.pycsw.config.metadata.inspire.contact_email }}
115120
{{ end }}{{ if .Values.pycsw.config.metadata.inspire.temp_extent }} temp_extent:
116-
{{- range $.Values.pycsw.config.metadata.inspire.temp_extent }}
117-
- {{ . }}
121+
{{ if .Values.pycsw.config.metadata.inspire.temp_extent.begin }} begin: {{ .Values.pycsw.config.metadata.inspire.temp_extent.begin }}
122+
{{ end }}{{ if .Values.pycsw.config.metadata.inspire.temp_extent.end }} end: {{ .Values.pycsw.config.metadata.inspire.temp_extent.end }}
118123
{{- end }}
119124
{{ end }}
120125
repository:
121126
{{ if .Values.pycsw.config.repository.database }} database: {{ .Values.pycsw.config.repository.database }}
122127
{{ end }}{{ if .Values.pycsw.config.repository.mappings }} mappings: {{ .Values.pycsw.config.repository.mappings }}
123128
{{ end }}{{ if .Values.pycsw.config.repository.table }} table: {{ .Values.pycsw.config.repository.table }}
124129
{{ end }}{{ if .Values.pycsw.config.repository.filter }} filter: {{ .Values.pycsw.config.repository.filter }}
130+
{{ end }}{{ if .Values.pycsw.config.repository.max_retries }} max_retries: {{ .Values.pycsw.config.repository.max_retries }}
125131
{{ end }}{{ if .Values.pycsw.config.repository.facets }} facets:
126132
{{- range $.Values.pycsw.config.repository.facets }}
127133
- {{ . }}

docker/helm/values.yaml

+10-5
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ pycsw:
2929
volume_path: /etc/pycsw
3030
config:
3131
server:
32-
home: /home/pycsw
3332
url: http://localhost:8000
3433
mimetype: application/xml; charset=UTF-8
3534
encoding: UTF-8
3635
language: en-US
3736
maxrecords: 10
38-
# logfile: " "
3937
# ogc_schemas_base: http://foo
4038
# pretty_print: true
4139
# gzip_compresslevel: 8
@@ -44,17 +42,18 @@ pycsw:
4442
# spatial_ranking: true
4543
# workers: 2
4644
timeout: 30
45+
logging:
46+
level: DEBUG
47+
# logfile: /tmp/pycsw.log
4748
profiles:
4849
- apiso
4950
# federatedcatalogues:
5051
# - http://catalog.data.gov/csw
51-
logging:
52-
level: DEBUG
5352
manager:
5453
transactions: false
5554
allowed_ips:
5655
- 127.0.0.1
57-
# csw_harvest_pagesize: 10
56+
csw_harvest_pagesize: 10
5857
metadata:
5958
identification:
6059
title: pycsw Geospatial Catalogue
@@ -66,6 +65,11 @@ pycsw:
6665
keywords_type: theme
6766
fees: None
6867
accessconstraints: None
68+
terms_of_service: https://creativecommons.org/licenses/by/4.0
69+
url: https://example.org
70+
license:
71+
name: CC-BY 4.0 license
72+
url: https://creativecommons.org/licenses/by/4.0
6973
provider:
7074
name: Organization Name
7175
url: https://pycsw.org/
@@ -104,6 +108,7 @@ pycsw:
104108
table: records
105109
# mappings: path/to/mappings.py
106110
# filter: type = 'http://purl.org/dc/dcmitype/Dataset'
111+
# max_retries: 5
107112
facets:
108113
- type
109114
- title

0 commit comments

Comments
 (0)