adds a check for the deployment_type var

This commit is contained in:
lrossett 2021-08-23 15:06:53 -03:00
parent 48b8957386
commit 97c9915b94
No known key found for this signature in database
GPG key ID: A073363F751EEE2B

View file

@ -25,7 +25,7 @@ spec:
- name: config-volume
mountPath: /etc/ci-resultsdb-listener
readOnly: true
{% if deployment_type not in ['local', 'dev'] %}
{% if deployment_type is defined and deployment_type not in ['local', 'dev'] %}
- name: fedora-messaging-ca-volume
mountPath: /etc/pki/rabbitmq/ca
readOnly: true
@ -43,7 +43,7 @@ spec:
- name: config-volume
configMap:
name: resultsdb-ci-listener-cfg
{% if deployment_type not in ['local', 'dev']%}
{% if deployment_type is defined and deployment_type not in ['local', 'dev']%}
- name: fedora-messaging-config-volume
configMap:
name: fedora-messaging-configmap