monitor-gating: Make the runner.cfg to /config

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-02-11 14:09:50 +01:00
parent 6fbebb269b
commit 8c94b4c6e6
3 changed files with 3 additions and 17 deletions

View file

@ -1,11 +0,0 @@
{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: monitor-gating-configmap
labels:
app: monitor-gating
data:
runner.cfg: |-
{{ load_file('runner.cfg') | indent }}

View file

@ -23,9 +23,6 @@ spec:
image: monitor-gating:latest
resources: {}
volumeMounts:
- name: config-volume
mountPath: /config/
readOnly: true
- name: monitor-gating-secret-volume
mountPath: /config/app-config/
readOnly: true
@ -33,9 +30,6 @@ spec:
mountPath: /root/.ssh/
readOnly: true
volumes:
- name: config-volume
configMap:
name: monitor-gating-configmap
- name: monitor-gating-secret-volume
secret:
secretName: monitor-gating-secret

View file

@ -8,3 +8,6 @@ metadata:
stringData:
monitor_gating.cfg: |-
{{ load_file('monitor_gating.cfg') | indent }}
runner.cfg: |-
{{ load_file('runner.cfg') | indent }}