# Versions

Look up the versions of the parts of Platforma, how they relate, and how to find the versions that run now.

Platforma has several parts, each with its own version. This page says how the versions relate, which ones work together, and how to find them. For the steps of an upgrade, see [Upgrade Platforma](/maintain-upgrading/).

## Parts and their versions

| Part                                                                                                                                  | Version, for example                                                                                                                                                                                                                                                                                                                                                                            | What sets it                                                                                                                                                                                                                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Backend (The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs.)                                    | `5.0.6`: the version of the program and the tag of its image `quay.io/milaboratories/platforma`                                                                                                                                                                                                                                                                                                 | The chart or the modules in Kubernetes (A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster.); the archive that you download in Single Server mode (The mode in which the Backend and all its jobs run on one Linux machine, the server, with no Kubernetes cluster.) |
| Helm chart                                                                                                                            | Chart `platforma` (installers): `5.0.6`. Chart `platforma-backend` (Terraform modules (The Terraform code that MiLaboratories provides to install Platforma. The cloud-specific Terraform modules make the cluster and its cloud parts in AWS or Google Cloud; the cloud-agnostic Terraform modules install Platforma into the cluster.) and own cluster): its own version, for example `0.1.0` | The release of the installer or of the modules that you apply                                                                                                                                                                                                                                                               |
| Terraform modules                                                                                                                     | The release of their source                                                                                                                                                                                                                                                                                                                                                                     | You choose it when you get the modules                                                                                                                                                                                                                                                                                      |
| Desktop App (The program that each user installs on their own computer to work with Platforma. It is a client of the Backend.)        | `1.34.0`                                                                                                                                                                                                                                                                                                                                                                                        | The Desktop App updates itself (see [Who updates each part](/security-vulnerability-management/#who-updates-what))                                                                                                                                                                                                          |
| Block (A small application for one step of an analysis, for example the import of reads or clustering. It can combine several tools.) | Each Block has its own version                                                                                                                                                                                                                                                                                                                                                                  | The users choose it in each project                                                                                                                                                                                                                                                                                         |

A chart has two versions: its own version (`version`) and the Backend version that it installs (`appVersion`). For the chart `platforma` of the installers, both are the version of Platforma, for example `5.0.6`: the AWS stack parameter `PlatformaVersion` and the tags of the installer, for example `v5.0.6`, use it. A release that changes only the chart can get a new chart version with the same `appVersion`. The chart `platforma-backend` of the Terraform modules has its own version numbers: its `appVersion` names the Backend version.

## Compatibility

- **Desktop App and Backend.** You can update the Desktop App and the Backend independently. When a version of one does not work with the version of the other, the Desktop App tells the user: for example “Please update the Desktop Application. The server you’re trying to connect to requires a newer Desktop App version.”
- **Major versions of the Backend.** A new major version of the Backend changes how you configure it or removes a feature that it supported. The Desktop App continues to work with it. Before a major upgrade, read [Upgrade Platforma](/maintain-upgrading/).
- **Blocks.** A Block version can need a newer Desktop App or a newer Backend. The Desktop App then does not add or update this Block version and tells the user which part to update.

## Supported versions

MiLaboratories supports one version: the most recent release of the Backend and of the Desktop App. Fixes come only in a new release, and older releases do not get fixes. To get a fix, upgrade to the most recent release.

You do not need to upgrade through each version. Each Backend release works with the database of any earlier version, so you can upgrade from any version to the most recent one directly and skip the versions between them: for example from 4.7.0 directly to 5.0.6. The same is true for the Desktop App: install the most recent version.

> **Caution:**
>
> An upgrade goes only forward: an older Backend does not start on a database that a newer Backend converted. To go back, see [Upgrade Platforma](/maintain-upgrading/#go-back-to-the-old-version).

## Versions that the modules fix

A release of the Terraform modules is one tested set of versions. To change a version, apply a newer release of the modules (see [Fixed versions of components](/security-vulnerability-management/#fixed-versions-of-components)). The modules take one version as an input: the tag of the Backend image, `backend_service.backend.image.tag` of `platforma-tf-services`. It is empty by default, and the modules then install the Backend version that the chart names (its `appVersion`).

| Module                             | What it fixes                                                                                                                                                                                                                                                                                                    | Where to read it                                                                                                  |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `platforma-tf-services`            | The version of the chart `platforma-backend`, and so the Backend version, when `backend_service.backend.image.tag` is empty                                                                                                                                                                                      | `terraform output release` (chart version and app version) and `terraform output versions` in the root `services` |
| `platforma-tf-services-cluster`    | The chart versions of Kueue (A Kubernetes add-on that holds jobs in a queue until the cluster has free CPU, memory and GPU for them.) and AppWrapper (A Kubernetes add-on that wraps the pods of one job into a single unit, so that Kueue admits and starts them together.), and their images by tag and digest | `terraform output versions` in the root `cluster`                                                                 |
| `platforma-tf-cloud-cluster` (AWS) | The chart versions of the load balancer controller, the cluster autoscaler, the storage drivers, ExternalDNS and the NVIDIA device plugin                                                                                                                                                                        | `locals.tf` of the module                                                                                         |

The output `versions` also shows `contract_version`: the version of the [Kubernetes contract](/infrastructure-contract/) between the modules. The modules of one release use the same contract version.

## Find the versions

**The versions that run now.** The Desktop App shows both versions at the end of the account menu, for example for example “Server v5.0.6 · Desktop 1.34.0”: users can read them out to you or to support. On the Backend side:

#### Variant: Kubernetes cluster

```sh
kubectl get deployment platforma -n platforma \
  -o jsonpath='{.spec.template.spec.containers[?(@.name=="platforma")].image}{"\n"}{.metadata.labels.helm\.sh/chart}{"\n"}'
```

Result: the image with the Backend version, and the chart with its version, for example for example `quay.io/milaboratories/platforma:5.0.6` and for example `platforma-5.0.6` for an installer installation, or for example `platforma-backend-0.1.0` for an installation with the Terraform modules or the chart `platforma-backend`. With the Terraform modules, the outputs `release` and `versions` also show them.

#### Variant: Single Server

```sh
/opt/platforma/binaries/platforma --version
```

Result: the version of the Backend.

**The new versions.** Each version of Platforma for the installers and the chart `platforma` is a tag of the public repository [platforma-helm](https://github.com/milaboratory/platforma-helm/tags), for example `v5.0.6`. The Desktop App gets its new versions by itself.

## Next

- [Upgrade Platforma](/maintain-upgrading/)
- [Release notes](/reference-release-notes/)

Source: https://docs.platforma.bio/reference-versions/
