Skip to content
Snippets Groups Projects
Unverified Commit 9aedc155 authored by Timo Furrer's avatar Timo Furrer
Browse files

Add docs for versions SSoT

parent 8fc67dd1
No related branches found
No related tags found
No related merge requests found
...@@ -9,16 +9,19 @@ from [`.gitlab/README.md.template`](.gitlab/README.md.template). ...@@ -9,16 +9,19 @@ from [`.gitlab/README.md.template`](.gitlab/README.md.template).
## Upgrade OpenTofu versions ## Upgrade OpenTofu versions
When adding new OpenTofu versions the following places need to be updated: The file `opentofu_versions.yaml` in the root of the project acts as
Single Source of Truth (SSoT) for the OpenTofu versions currently supported.
| File | What | The versions in the templates are rendered by the
| ------------------------------------------------------------ | ----------------------------------------------------------------------------------------- | `./.gitlab/scripts/update-opentofu-versions.sh` script and the versions in
| [`templates/full-pipeline.yml`](templates/full-pipeline.yml) | The `default` value and `options` list of the `sepc.inputs.opentofu_versions` entry. | the `.gitlab-ci.yml` file are referencing the data from the SSoT file by
| [`.gitlab-ci.yml`](.gitlab-ci.yml) | The `.opentofu_versions.parallel.matrix` list and the `LATEST_OPENTOFU_VERSION` variable. | using a combination of CI includes and `!reference`.
All of the above definitions have to match each other. To update the supported OpenTofu versions perform the following steps:
We currently need to change it in multiple places, because there is not a good way to share information
from the templates and the components pipeline defintion - at least in the features we'd like to use them. - Update the SSoT file with the new latest version and supported versions.
- Run the `./.gitlab/scripts/update-opentofu-versions.sh` script.
- Commit the changes.
- Submit Merge Request.
## Releasing ## Releasing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment