From 028194f39eee85a44eb186dd5aab6f14268683a4 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Wed, 6 Sep 2017 13:45:10 +0200 Subject: Support setting annotations on Hawkular route Our setup uses annotations to request a separate component, namely the ACME Controller[1], to request domain-validated certificates from the Let's Encrypt CA. By setting the necessary annotation via Ansible rather than manually the system will automatically retrieve a certificate. [1] https://github.com/tnozicka/openshift-acme --- roles/openshift_metrics/templates/route.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/openshift_metrics/templates') diff --git a/roles/openshift_metrics/templates/route.j2 b/roles/openshift_metrics/templates/route.j2 index 423ab54a3..253d6ecf5 100644 --- a/roles/openshift_metrics/templates/route.j2 +++ b/roles/openshift_metrics/templates/route.j2 @@ -2,6 +2,9 @@ apiVersion: v1 kind: Route metadata: name: {{ name }} +{% if annotations is defined %} + annotations: {{ annotations | to_yaml }} +{% endif %} {% if labels is defined and labels %} labels: {% for k, v in labels.iteritems() %} -- cgit v1.2.3