message-tagging-service: use fedora-infra krb5.conf template and install koji conf into proper place
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
This commit is contained in:
parent
06b6b5b76d
commit
7358fd1f06
2 changed files with 14 additions and 25 deletions
|
@ -130,26 +130,8 @@ data:
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: "fedoraproject-kerberos-auth-config"
|
||||
name: "krb5-conf"
|
||||
labels:
|
||||
app: "mts"
|
||||
data:
|
||||
{% if env == 'staging' %}
|
||||
stg_fedoraproject_org: |-
|
||||
[realms]
|
||||
STG.FEDORAPROJECT.ORG = {
|
||||
kdc = https://id.stg.fedoraproject.org/KdcProxy
|
||||
}
|
||||
[domain_realm]
|
||||
.stg.fedoraproject.org = STG.FEDORAPROJECT.ORG
|
||||
stg.fedoraproject.org = STG.FEDORAPROJECT.ORG
|
||||
{% else %}
|
||||
fedoraproject_org: |-
|
||||
[realms]
|
||||
FEDORAPROJECT.ORG = {
|
||||
kdc = https://id.fedoraproject.org/KdcProxy
|
||||
}
|
||||
[domain_realm]
|
||||
.fedoraproject.org = FEDORAPROJECT.ORG
|
||||
fedoraproject.org = FEDORAPROJECT.ORG
|
||||
{% endif %}
|
||||
{{ lookup('template', roles_path + '/base/templates/krb5.conf.j2') | indent }}
|
||||
|
|
|
@ -29,10 +29,17 @@ spec:
|
|||
mountPath: /etc/fedmsg.d
|
||||
readOnly: true
|
||||
- name: "koji-conf"
|
||||
mountPath: /etc/koji.conf.d
|
||||
{% if env == 'staging' %}
|
||||
mountPath: /etc/koji.conf.d/stg.conf
|
||||
subPath: stg.conf
|
||||
{% else %}
|
||||
mountPath: /etc/koji.conf
|
||||
subPath: koji.conf
|
||||
{% endif %}
|
||||
readOnly: true
|
||||
- name: "fedoraproject-kerberos-auth-config"
|
||||
mountPath: /etc/krb5.conf.d/
|
||||
- name: "krb5-conf"
|
||||
mountPath: /etc/krb5.conf
|
||||
subPath: krb5.conf
|
||||
readOnly: true
|
||||
- name: keytab
|
||||
mountPath: /etc/krb5.keytab
|
||||
|
@ -67,9 +74,9 @@ spec:
|
|||
- name: "koji-conf"
|
||||
configMap:
|
||||
name: "koji-conf"
|
||||
- name: "fedoraproject-kerberos-auth-config"
|
||||
- name: "krb5-conf"
|
||||
configMap:
|
||||
name: "fedoraproject-kerberos-auth-config"
|
||||
name: "krb5-conf"
|
||||
- name: keytab
|
||||
secret:
|
||||
secretName: keytab
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue