{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
apiVersion: v1
kind: Secret
metadata:
  name: monitor-gating-secret
  labels:
    app: monitor-gating
stringData:
  monitor_gating.cfg: |-
    {{ load_file('monitor_gating.cfg') | indent }}
  runner.cfg: |-
    {{ load_file('runner.cfg') | indent }}
  krb5.conf: |
    {{ lookup('template', roles_path + '/base/templates/krb5.conf.j2') | indent }}

