diff --git a/openstack_operator/glance.py b/openstack_operator/glance.py index 6047ea79..fbe0a600 100644 --- a/openstack_operator/glance.py +++ b/openstack_operator/glance.py @@ -20,6 +20,7 @@ the appropriate deployments, Mcrouter, pod monitors and Prometheus rules. from openstack_operator import database +from openstack_operator import identity from openstack_operator import utils @@ -44,10 +45,14 @@ def create_or_resume(name, spec, **_): name=name, spec=spec) utils.create_or_update('glance/service.yml.j2', name=name, spec=spec) - + url = None if "ingress" in spec: utils.create_or_update('glance/ingress.yml.j2', name=name, spec=spec) + url = spec["ingress"]["host"] + + identity.ensure_service(name="glance", service_type="image", + url=url, desc="Glance Image Service") def update(name, spec, **_):