mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 10:31:56 +08:00
message-tagging-service: add koji config
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
91bbb0e46d
commit
fa4b5f0670
@@ -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 %}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user