rik-org / rik

RIK is an experimental workload orchestrator that allows you to deploy your cloud applications, written in Rust.
https://rik-org.github.io/rik/
Apache License 2.0
68 stars 11 forks source link

[ENHANCEMENT]: Use new registry capabilities to retrieve the function image #60

Closed mflagey closed 1 year ago

mflagey commented 1 year ago

Description of the change

With the new build process for functions, we need to slightly adapt our current code to handle the download of a function image.

Currently, we assume that the workload attribute rootfs contains a PSU to download the function image. But this is a real issue, as the PSU have an expiry.

The registry is now responsible to build functions and to deliver PSU for accessing functions images. That said, there is a route on the registry /v1/functions/{name} that will generate a PSU for the given function image, and return it to the caller.

Once the function workload is created, the url of the rootfs will be $URL_REGISTRY/v1/functions/{name}. The riklet should make a GET request on this endpoint to retrieve a PSU, and once retrieved, download the PSU like actual.

alexandrebrg commented 1 year ago

Hi, please consider giving a complete description!

thomasgouveia commented 1 year ago

@AlexandreBrg I updated the description

alexandrebrg commented 1 year ago

Discussions exposed that this issue wasn't really related to RIK, closing.