Within one deployment, users can upload multiple versions of their processing code. UbiOps builds a separate container for each deployment version, so in the background versions are handled as separate entities and can be used as such. However, the input and output structure of the deployment will be maintained to ensure cross-compatibility between versions, so that they can easily be replaced when needed.
Creating a new version of an existing deployment¶
Every deployment deployed in UbiOps consists of one or more versions. Each version of the deployment can have a different implementation, resource allocations or even programming language. However they must have an identical input/output structure, as set when creating the deployment, in order for them to be used interchangeably.
When using the user interface, a first deployment version is automatically created together with the deployment. You are able to add more deployment versions using UbiOps' deployment versioning system.
In the left navigation bar, click on Deployments. Click on the deployment to which a new version will be added.
Then, click on the Create version button in the versions pane at the top left, of the pane. The version creation form will appear.
Fill in the version name and the programming language. Click on the Upload code button to upload the ZIP file for the new deployment version. The required structure of the ZIP file can be found here. Other configurations are optional, such as for example the memory allocation. These can be set in the Advanced parameters. As with deployments, you can assign labels to versions to filter them easily later on.
Finally, click on the Create button to create the new version.