Page MenuHomePhabricator

jobs-api: Expose state and webservice_defaults on /images endpoint
Open, HighPublic

Description

we plan to add a jobs-api backend to webservice-cli (either side-by-side or a replacement for the kubernetes backend),
as we move towards deprecating the webservice-cli.

To make this possible we need to expose image state and if the image is webservice capable, via the images endpoint in jobs-api.

  • image state (stabe / deprecated) is needed to filter deprecated types from --help and show warning.
  • webservice_defaults to help us know which images are capable of being used as a webservice or not.

This shouldn't be a breaking change as existing clients making use of the api should still be able to read the current shortname and image fields they depend on.