This should fetch them from harbor, both pre-built and user-built images and return the list of them with details.
On this first iteration we can still use image-config, but with an eye on deprecating image-config once webservice uses this endpoint.
This should fetch them from harbor, both pre-built and user-built images and return the list of them with details.
On this first iteration we can still use image-config, but with an eye on deprecating image-config once webservice uses this endpoint.
image-config configmap has the below structure currently:
NOTE: the below entry is not an exact example of what is in the config, I just gathered many of the common aliases, state, extras into a single config entry so we can talk about it
apiVersion: v1
data:
images-v1.yaml: |
bookworm:
aliases:
- tf-bullseye-std
- tf-bullseye-std-DEPRECATED
state: stable
variants:
jobs-framework:
image: docker-registry.tools.wmflabs.org/toolforge-bookworm-sssd
webservice:
extra:
resources: jdk
wstype: generic
image: docker-registry.tools.wmflabs.org/toolforge-bookworm-web-sssd
...
kind: ConfigMap
...Few things to think about:
raymond-ndibe opened https://gitlab.wikimedia.org/repos/cloud/toolforge/builds-api/-/merge_requests/150
Draft: add endpoint to get all available images