geopython / pycsw

pycsw is an OGC CSW server implementation written in Python. pycsw fully implements the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web]. Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X). Please read the docs at https://pycsw.org/docs for more information.
https://pycsw.org
MIT License
197 stars 153 forks source link

Adapt helm chart for yaml configuration #938

Closed kalxas closed 6 months ago

kalxas commented 6 months ago

Overview

Fixes helm chart with support for the new yaml configuration

Contributions and Licensing

(as per https://github.com/geopython/pycsw/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

kalxas commented 6 months ago

Helm template rendering:

$> helm template .
---
# Source: pycsw/templates/pycsw-configmap.yaml
apiVersion: v1
data:
  pycsw.yml: |+
    # =================================================================
    #
    # Authors: Tom Kralidis <tomkralidis@gmail.com>
    #          Angelos Tzotsos <tzotsos@gmail.com>
    #
    # Copyright (c) 2023 Tom Kralidis
    # Copyright (c) 2024 Angelos Tzotsos
    #
    # Permission is hereby granted, free of charge, to any person
    # obtaining a copy of this software and associated documentation
    # files (the "Software"), to deal in the Software without
    # restriction, including without limitation the rights to use,
    # copy, modify, merge, publish, distribute, sublicense, and/or sell
    # copies of the Software, and to permit persons to whom the
    # Software is furnished to do so, subject to the following
    # conditions:
    #
    # The above copyright notice and this permission notice shall be
    # included in all copies or substantial portions of the Software.
    #
    # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
    # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    # OTHER DEALINGS IN THE SOFTWARE.
    #
    # =================================================================
    server:
        home: /home/pycsw
        url: http://localhost:8000
        mimetype: application/xml; charset=UTF-8
        encoding: UTF-8
        language: en-US
        maxrecords: 10
        timeout: 30

    logging:
        level: DEBUG

    profiles:
        - apiso

    manager:
        allowed_ips:
            - 127.0.0.1

    metadata:
        identification:
            title: pycsw Geospatial Catalogue
            description: pycsw is an OARec and OGC CSW server implementation written in Python
            keywords:
                - catalogue
                - discovery
                - metadata
            keywords_type: theme
            fees: None
            accessconstraints: None
        provider:
            name: Organization Name
        contact:
            name: Lastname, Firstname
            position: Position Title
            address: Mailing Address
            city: City
            stateorprovince: Administrative Area
            postalcode: Zip or Postal Code
            country: Country
            phone: +xx-xxx-xxx-xxxx
            fax: +xx-xxx-xxx-xxxx
            email: Email Address
            url: Contact URL
            hours: Hours of Service
            instructions: During hours of service.  Off on weekends.
            role: pointOfContact
        inspire:
            enabled: true
            languages_supported:
                - eng
                - gre
            default_language: eng
            date: YYYY-MM-DD
            gemet_keywords:
                - Utility and governmental services
            conformity_service: notEvaluated
            contact_name: Organization Name
            contact_email: Email Address
            temp_extent:
                - YYYY-MM-DD
                - YYYY-MM-DD

    repository:
        database: postgresql://postgres:mypass@db/pycsw
        table: records
        facets:
            - type
            - title

kind: ConfigMap
metadata:
  name: pycsw-configmap
  namespace: default
kalxas commented 6 months ago

CI failure related to demo server being down