{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
---
apiVersion: v1
kind: List
metadata: {}
items:
- apiVersion: v1
  kind: ConfigMap
  metadata:
    name: flask-oidc-dev-config
    labels:
      app: flask-oidc-dev
  data:
    flask-oidc-dev.cfg: |-
      {{ load_file('config.py') | indent(6) }}
    oidc.json: |-
      {{ load_file('client_secrets.json') | indent(6) }}
