summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/templates
diff options
context:
space:
mode:
authorJeff Cantrill <jcantrill@users.noreply.github.com>2017-01-06 11:23:28 -0500
committerJeff Cantrill <jcantril@redhat.com>2017-01-17 11:45:04 -0500
commit1e8928c96627218fdc422bfa3731f790699abfbb (patch)
tree32e948c473ac1bc359fb1318db1226a4c5646fc5 /roles/openshift_metrics/templates
parent765fb5ce39fdca0b56a23f6d13650fe16debf20a (diff)
downloadopenshift-1e8928c96627218fdc422bfa3731f790699abfbb.tar.gz
openshift-1e8928c96627218fdc422bfa3731f790699abfbb.tar.bz2
openshift-1e8928c96627218fdc422bfa3731f790699abfbb.tar.xz
openshift-1e8928c96627218fdc422bfa3731f790699abfbb.zip
User provided certs pushed from control. vars reorg (#12)
Merging per discussion and agreement from @bbguimaraes
Diffstat (limited to 'roles/openshift_metrics/templates')
-rw-r--r--roles/openshift_metrics/templates/route.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_metrics/templates/route.j2 b/roles/openshift_metrics/templates/route.j2
index a720c4959..08ca87288 100644
--- a/roles/openshift_metrics/templates/route.j2
+++ b/roles/openshift_metrics/templates/route.j2
@@ -16,6 +16,18 @@ spec:
{% if tls is defined %}
tls:
termination: {{ tls.termination }}
+{% if tls.ca_certificate is defined and tls.ca_certificate | length > 0 %}
+ CACertificate: |
+{{ tls.ca_certificate|indent(6, true) }}
+{% endif %}
+{% if tls.key is defined and tls.key | length > 0 %}
+ key: |
+{{ tls.key|indent(6, true) }}
+{% endif %}
+{% if tls.certificate is defined and tls.certificate | length > 0 %}
+ certificate: |
+{{ tls.certificate|indent(6, true) }}
+{% endif %}
{% if tls.termination == 'reencrypt' %}
destinationCACertificate: |
{{ tls.destination_ca_certificate|indent(6, true) }}