|
| 1 | +--- |
| 2 | +title: Release 1.0.1 |
| 3 | +--- |
| 4 | +<table> |
| 5 | + <tbody> |
| 6 | + <tr> |
| 7 | + <th>Release Number</th> |
| 8 | + <td>1.0.1</td> |
| 9 | + </tr> |
| 10 | + <tr> |
| 11 | + <th>Release Date</th> |
| 12 | + <td>October 31th, 2024</td> |
| 13 | + </tr> |
| 14 | + <tr> |
| 15 | + <th>Release Codename</th> |
| 16 | + <td>Stockholm, Patch #1</td> |
| 17 | + </tr> |
| 18 | + <tr> |
| 19 | + <th>Tag</th> |
| 20 | + <td>[infrahub-v1.0.1](https://github.com/opsmill/infrahub/releases/tag/infrahub-v1.0.1)</td> |
| 21 | + </tr> |
| 22 | + </tbody> |
| 23 | +</table> |
| 24 | + |
| 25 | +# Release 1.0.1 |
| 26 | + |
| 27 | +This is a bug-fix release to address issues found in Infrahub v1.0.0. |
| 28 | + |
| 29 | +## Main changes |
| 30 | + |
| 31 | +The complete list of changes can always be found in the `CHANGELOG.md` file in the Infrahub Git repository. |
| 32 | + |
| 33 | +### Fixed |
| 34 | + |
| 35 | +- When a user is not logged in and the branch name is not found, hide the quick-create action and display the message: 'No branch found' ([#4801](https://github.com/opsmill/infrahub/issues/4801)) |
| 36 | +- Fix automation to trigger generation of artifacts after merging a branch ([#4804](https://github.com/opsmill/infrahub/issues/4804)) |
| 37 | +- Avoid sending an empty list to the load schema API on repository import if it's not required |
| 38 | +- Update demo environment to work with Infrahub 1.0 |
| 39 | + |
| 40 | +## Migration guide |
| 41 | + |
| 42 | +The process to migrate your instance of Infrahub to the latest version may vary depending on your deployment of Infrahub. |
| 43 | +However, at a high-level, it will involve getting the latest version of the Infrahub code, and then performing any needed Database Migrations and Schema updates. |
| 44 | + |
| 45 | +Please ensure you have a **backup of your Infrahub environment** prior to attempting any migration or upgrade activities. |
| 46 | + |
| 47 | +### Migration of an Infrahub instance |
| 48 | + |
| 49 | +**First**, update the Infrahub version running in your environment. |
| 50 | + |
| 51 | +Below are some example ways to get the latest version of Infrahub in your environment. |
| 52 | + |
| 53 | +- For deployments via Docker Compose, update your container version by updating the `IMAGE_VER` environment variable and relaunch: |
| 54 | + - `export IMAGE_VER="1.0.0"; docker compose pull && docker compose up -d` |
| 55 | +- For deployments via Kubernetes, utilize the latest version of the Helm chart supplied with this release |
| 56 | + |
| 57 | +**Second**, once you have gotten the desired version of Infrahub in your environment, please run the following commands. |
| 58 | + |
| 59 | +> Note: If you are running Infrahub in Docker/K8s, these commands need to run from a container where Infrahub is installed. |
| 60 | +
|
| 61 | +```shell |
| 62 | +infrahub db migrate |
| 63 | +infrahub db update-core-schema |
| 64 | +``` |
| 65 | + |
| 66 | +**Finally**, restart all instances of Infrahub. |
| 67 | + |
| 68 | +### Migration of a dev or demo instance |
| 69 | + |
| 70 | +If you are using the `dev` or `demo` environments, we have provided `invoke` commands to aid in the migration to the latest version. |
| 71 | +The below examples provide the `demo` version of the commands, however similar commands can be used for `dev` as well. |
| 72 | + |
| 73 | +```shell |
| 74 | +invoke demo.stop |
| 75 | +invoke demo.build |
| 76 | +invoke demo.migrate |
| 77 | +invoke demo.start |
| 78 | +``` |
| 79 | + |
| 80 | +If you don't want to keep your data, you can start a clean instance with the following command. |
| 81 | + |
| 82 | +> **Warning: All data will be lost, please make sure to backup everything you need before running this command.** |
| 83 | +
|
| 84 | +```shell |
| 85 | +invoke demo.destroy demo.build demo.start demo.load-infra-schema demo.load-infra-data |
| 86 | +``` |
| 87 | + |
| 88 | +The repository https://github.com/opsmill/infrahub-demo-edge has also been updated, it's recommended to pull the latest changes into your fork. |
0 commit comments