{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: fedora-packages-static-configmap
  labels:
    app: fedora-packages-static
data:
  solr-url: "http://solr.fedora-packages-static.svc.cluster.local:8983/"
  sitemap-url: "https://packages{{ env_suffix }}.fedoraproject.org"
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: fedora-packages-static-solr-configmap
  labels:
    app: fedora-packages-static
data:
  solrconfig.xml: |-
    {{ load_file('packages/solrconfig.xml') | indent }}
  schema.xml: |-
    {{ load_file('packages/schema.xml') | indent }}
  stopwords_en.txt: |-
    {{ load_file('packages/stopwords_en.txt') | indent }}
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: fedora-packages-static-solr-start-configmap
  labels:
    app: fedora-packages-static
data:
  solr-start.sh: |-
    {{ load_file('solr-start.sh') | indent }}
