message-tagging-service: add koji config

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
This commit is contained in:
Chenxiong Qi
2019-07-30 13:19:10 +08:00
committed by Pierre-Yves Chibon
parent 91bbb0e46d
commit fa4b5f0670
2 changed files with 36 additions and 0 deletions

View File

@@ -100,3 +100,29 @@ data:
}
},
})
---
apiVersion: v1
kind: ConfigMap
metadata:
name: "koji-conf"
labels:
app: "mts"
data:
{% if env == 'staging' %}
stg.conf: |-
[stg]
server = https://koji.stg.fedoraproject.org/kojihub
weburl = https://koji.stg.fedoraproject.org/koji
topurl = https://kojipkgs.stg.fedoraproject.org/
authtype = kerberos
krb_rdns = false
{% else %}
koji.conf: |-
[koji]
server = https://koji.fedoraproject.org/kojihub
weburl = https://koji.fedoraproject.org/koji
topurl = https://kojipkgs.fedoraproject.org/
authtype = kerberos
krb_rdns = false
{% endif %}

View File

@@ -28,6 +28,13 @@ spec:
- name: "mts-fedmsg"
mountPath: /etc/fedmsg.d
readOnly: true
- name: "koji-conf"
{% if env == 'staging' %}
mountPath: /etc/koji.conf.d
{% else %}
mountPath: /etc/
{% endif %}
readOnly: true
- name: keytab
mountPath: /etc/krb5.keytab
subPath: krb5.keytab
@@ -58,6 +65,9 @@ spec:
- name: "mts-fedmsg"
configMap:
name: "mts-fedmsg"
- name: "koji-conf"
configMap:
name: "koji-conf"
- name: keytab
secret:
secretName: keytab