From 55831f8b2f706647503730823f92ed9f5777f5be Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 12 Aug 2017 12:34:35 -0500 Subject: [PATCH] Add flag to indicate a service is a secondary service In cases where one project provices more than one service, answering the question "what service-type corresponds with this project name?" becomes hard. In the one existing example, nova with compute and placement, if someone asks "what is the service-type associated with 'nova'?" - they mean compute. Allow for marking a service as secondary so that data consumption routines can know. Change-Id: I9434dc22b5f268fa4035b417e4062f58096ebc40 --- README.rst | 8 ++++++++ schema.json | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/README.rst b/README.rst index ebf5158..025707a 100644 --- a/README.rst +++ b/README.rst @@ -70,6 +70,14 @@ ordered list of known fallback names. If an API consumer cannot find a given list of ``aliases`` here, in the order they are given, in order to find the requested endpoint. +secondary (optional) +-------------------- + +If secondary is set and is true, the project is not the primary service people +associate with the project codename. For instance, the ``nova`` project has +two services, ``compute`` and ``placement``. ``compute`` is the primary +project. ``placement`` is secondary. + Naming ====== diff --git a/schema.json b/schema.json index f705e41..d97da75 100644 --- a/schema.json +++ b/schema.json @@ -44,6 +44,10 @@ "type": "string" }, "description": "An ordered list of historical aliases for this service type." + }, + "secondary": { + "type": "boolean", + "description": "Is this a secondary service for a project?" } }, "additionalProperties":false,