From 75899582c2d362760536794d701ab3345dc77e0c Mon Sep 17 00:00:00 2001 From: Brett Lykins Date: Thu, 31 Oct 2024 13:50:20 -0400 Subject: [PATCH 1/3] release prep for v1.0.1 --- CHANGELOG.md | 9 ++ changelog/+9b1d29f3.fixed.md | 1 - changelog/+fix-demo.fixed.md | 1 - changelog/4801.fixed.md | 1 - changelog/4804.fixed.md | 1 - .../release-notes/infrahub/release-1_0.mdx | 9 ++ .../infrahub/release-1_0_1-DRAFT.mdx | 69 --------------- .../release-notes/infrahub/release-1_0_1.mdx | 88 +++++++++++++++++++ .../infrahub/release-1_0_2-DRAFT.mdx | 85 ++++++++++++++++++ docs/sidebars.ts | 3 +- pyproject.toml | 2 +- 11 files changed, 194 insertions(+), 75 deletions(-) delete mode 100644 changelog/+9b1d29f3.fixed.md delete mode 100644 changelog/+fix-demo.fixed.md delete mode 100644 changelog/4801.fixed.md delete mode 100644 changelog/4804.fixed.md delete mode 100644 docs/docs/release-notes/infrahub/release-1_0_1-DRAFT.mdx create mode 100644 docs/docs/release-notes/infrahub/release-1_0_1.mdx create mode 100644 docs/docs/release-notes/infrahub/release-1_0_2-DRAFT.mdx diff --git a/CHANGELOG.md b/CHANGELOG.md index dd63e7c12f..dcb6fe65a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,15 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [1.0.1](https://github.com/opsmill/infrahub/tree/v1.0.1) - 2024-10-31 + +### Fixed + +- 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)) +- Fix automation to trigger generation of artifacts after merging a branch ([#4804](https://github.com/opsmill/infrahub/issues/4804)) +- Avoid sending an empty list to the load schema API on repository import if it's not required +- Update demo environment to work with Infrahub 1.0 + ## [1.0.0](https://github.com/opsmill/infrahub/tree/v1.0.0) - 2024-10-30 ### Removed diff --git a/changelog/+9b1d29f3.fixed.md b/changelog/+9b1d29f3.fixed.md deleted file mode 100644 index 3590e12722..0000000000 --- a/changelog/+9b1d29f3.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Avoid sending an empty list to the load schema API on repository import if it's not required diff --git a/changelog/+fix-demo.fixed.md b/changelog/+fix-demo.fixed.md deleted file mode 100644 index ac1c2bd8b0..0000000000 --- a/changelog/+fix-demo.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Update demo environment to work with Infrahub 1.0 \ No newline at end of file diff --git a/changelog/4801.fixed.md b/changelog/4801.fixed.md deleted file mode 100644 index c145f390c0..0000000000 --- a/changelog/4801.fixed.md +++ /dev/null @@ -1 +0,0 @@ -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' diff --git a/changelog/4804.fixed.md b/changelog/4804.fixed.md deleted file mode 100644 index e56fa98130..0000000000 --- a/changelog/4804.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Fix automation to trigger generation of artifacts after merging a branch \ No newline at end of file diff --git a/docs/docs/release-notes/infrahub/release-1_0.mdx b/docs/docs/release-notes/infrahub/release-1_0.mdx index 897d81017f..77a9a6f994 100644 --- a/docs/docs/release-notes/infrahub/release-1_0.mdx +++ b/docs/docs/release-notes/infrahub/release-1_0.mdx @@ -151,6 +151,15 @@ organization where it needs to be. ## Other +### New task-manager component + +A new component called `Task Manager` has been introduced within Infrahub, and along with this change the Git-Agent has been renamed to `Task Worker`. +The task manager is based on Prefect, a popular workflow orchestration system. + +The Task Manager is used internally to improve the execution and the visibility of all background tasks. +In future releases, we are planning to bring these additional information within Infrahub itself. +Stay tuned for more information and more exciting features around task management in upcoming releases. + ### Removed - Remove previously deprecated GET API endpoint "/api/schema/" ([#3884](https://github.com/opsmill/infrahub/issues/3884)) diff --git a/docs/docs/release-notes/infrahub/release-1_0_1-DRAFT.mdx b/docs/docs/release-notes/infrahub/release-1_0_1-DRAFT.mdx deleted file mode 100644 index 28c209c497..0000000000 --- a/docs/docs/release-notes/infrahub/release-1_0_1-DRAFT.mdx +++ /dev/null @@ -1,69 +0,0 @@ ---- -title: Release 1.0.1 - DEVELOPMENT ---- - - - - - - - - - - - - - - - - - - - -
Release NumberTBD
Release DateTBD
Release CodenameTBD
TagTBD
- -# Release 1.0.1 - -## Main changes - -### Unified storage - -### Schema - -### Helm chart - -### Other - -## Migration guide - -To migrate your instance of Infrahub to the latest version, please run the following commands and restart all instances of Infrahub. - - -```shell -infrahub db migrate -infrahub db update-core-schema -``` - - -> if you are running in docker these commands need to run from the container where Infrahub is installed - -### Migration of the demo instance - -If you are using the demo environment, you can migrate to the latest version with the following commands - -```shell -invoke demo.stop -invoke demo.build -invoke demo.migrate -invoke demo.start -``` - -If you don't want to keep your data, you can start a clean instance with the following command - -```shell -invoke demo.destroy demo.build demo.start demo.load-infra-schema demo.load-infra-data -``` - -> All data will be lost, please make sure to backup everything you need before running this command. - -The repository https://github.com/opsmill/infrahub-demo-edge has also been updated, it's recommended to pull the latest changes into your fork. diff --git a/docs/docs/release-notes/infrahub/release-1_0_1.mdx b/docs/docs/release-notes/infrahub/release-1_0_1.mdx new file mode 100644 index 0000000000..3d5ca47f61 --- /dev/null +++ b/docs/docs/release-notes/infrahub/release-1_0_1.mdx @@ -0,0 +1,88 @@ +--- +title: Release 1.0.1 +--- + + + + + + + + + + + + + + + + + + + +
Release Number1.0.1
Release DateOctober 31th, 2024
Release CodenameStockholm, Patch #1
Tag[infrahub-v1.0.1](https://github.com/opsmill/infrahub/releases/tag/infrahub-v1.0.1)
+ +# Release 1.0.1 + +This is a bug-fix release to address issues found in Infrahub v1.0.0. + +## Main changes + +The complete list of changes can always be found in the `CHANGELOG.md` file in the Infrahub Git repository. + +### Fixed + +- 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)) +- Fix automation to trigger generation of artifacts after merging a branch ([#4804](https://github.com/opsmill/infrahub/issues/4804)) +- Avoid sending an empty list to the load schema API on repository import if it's not required +- Update demo environment to work with Infrahub 1.0 + +## Migration guide + +The process to migrate your instance of Infrahub to the latest version may vary depending on your deployment of Infrahub. +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. + +Please ensure you have a **backup of your Infrahub environment** prior to attempting any migration or upgrade activities. + +### Migration of an Infrahub instance + +**First**, update the Infrahub version running in your environment. + +Below are some example ways to get the latest version of Infrahub in your environment. + +- For deployments via Docker Compose, update your container version by updating the `IMAGE_VER` environment variable and relaunch: + - `export IMAGE_VER="1.0.0"; docker compose pull && docker compose up -d` +- For deployments via Kubernetes, utilize the latest version of the Helm chart supplied with this release + +**Second**, once you have gotten the desired version of Infrahub in your environment, please run the following commands. + +> Note: If you are running Infrahub in Docker/K8s, these commands need to run from a container where Infrahub is installed. + +```shell +infrahub db migrate +infrahub db update-core-schema +``` + +**Finally**, restart all instances of Infrahub. + +### Migration of a dev or demo instance + +If you are using the `dev` or `demo` environments, we have provided `invoke` commands to aid in the migration to the latest version. +The below examples provide the `demo` version of the commands, however similar commands can be used for `dev` as well. + +```shell +invoke demo.stop +invoke demo.build +invoke demo.migrate +invoke demo.start +``` + +If you don't want to keep your data, you can start a clean instance with the following command. + +> **Warning: All data will be lost, please make sure to backup everything you need before running this command.** + +```shell +invoke demo.destroy demo.build demo.start demo.load-infra-schema demo.load-infra-data +``` + +The repository https://github.com/opsmill/infrahub-demo-edge has also been updated, it's recommended to pull the latest changes into your fork. diff --git a/docs/docs/release-notes/infrahub/release-1_0_2-DRAFT.mdx b/docs/docs/release-notes/infrahub/release-1_0_2-DRAFT.mdx new file mode 100644 index 0000000000..dc9de6f7bd --- /dev/null +++ b/docs/docs/release-notes/infrahub/release-1_0_2-DRAFT.mdx @@ -0,0 +1,85 @@ +--- +title: Release 1.0.2 - DEVELOPMENT +--- + + + + + + + + + + + + + + + + + + + +
Release NumberTBD
Release DateTBD
Release CodenameTBD
TagTBD
+ +# Release 1.0.2 + +## Main changes + +### Unified storage + +### Schema + +### Helm chart + +### Other + +## Migration guide + +The process to migrate your instance of Infrahub to the latest version may vary depending on your deployment of Infrahub. +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. + +Please ensure you have a **backup of your Infrahub environment** prior to attempting any migration or upgrade activities. + +### Migration of an Infrahub instance + +**First**, update the Infrahub version running in your environment. + +Below are some example ways to get the latest version of Infrahub in your environment. + +- For deployments via Docker Compose, update your container version by updating the `IMAGE_VER` environment variable and relaunch: + - `export IMAGE_VER="1.0.0"; docker compose pull && docker compose up -d` +- For deployments via Kubernetes, utilize the latest version of the Helm chart supplied with this release + +**Second**, once you have gotten the desired version of Infrahub in your environment, please run the following commands. + +> Note: If you are running Infrahub in Docker/K8s, these commands need to run from a container where Infrahub is installed. + +```shell +infrahub db migrate +infrahub db update-core-schema +``` + +**Finally**, restart all instances of Infrahub. + +### Migration of a dev or demo instance + +If you are using the `dev` or `demo` environments, we have provided `invoke` commands to aid in the migration to the latest version. +The below examples provide the `demo` version of the commands, however similar commands can be used for `dev` as well. + +```shell +invoke demo.stop +invoke demo.build +invoke demo.migrate +invoke demo.start +``` + +If you don't want to keep your data, you can start a clean instance with the following command. + +> **Warning: All data will be lost, please make sure to backup everything you need before running this command.** + +```shell +invoke demo.destroy demo.build demo.start demo.load-infra-schema demo.load-infra-data +``` + +The repository https://github.com/opsmill/infrahub-demo-edge has also been updated, it's recommended to pull the latest changes into your fork. \ No newline at end of file diff --git a/docs/sidebars.ts b/docs/sidebars.ts index 22ff56b098..09ddea929e 100644 --- a/docs/sidebars.ts +++ b/docs/sidebars.ts @@ -312,7 +312,8 @@ const sidebars: SidebarsConfig = { slug: 'release-notes/infrahub', }, items: [ - // 'release-notes/infrahub/release-1_0_1-DRAFT', + // 'release-notes/infrahub/release-1_0_2-DRAFT', + 'release-notes/infrahub/release-1_0_1', 'release-notes/infrahub/release-1_0', 'release-notes/infrahub/release-0_16_4', 'release-notes/infrahub/release-0_16_3', diff --git a/pyproject.toml b/pyproject.toml index a28910aac4..f709676f85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "infrahub-server" -version = "1.0.0" +version = "1.0.1" description = "Infrahub is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run." authors = ["OpsMill "] readme = "README.md" From 170b03c6ba688a538dbc4e9395d955ce65e2e073 Mon Sep 17 00:00:00 2001 From: Brett Lykins Date: Thu, 31 Oct 2024 13:52:23 -0400 Subject: [PATCH 2/3] update Helm chart --- helm/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 670a5277ab..f5f12bbb5b 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -15,12 +15,12 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 3.0.0 +version: 3.0.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.0.0" +appVersion: "1.0.1" dependencies: - name: neo4j From ca8288f27d3d60e24d63b7b29c2fbaa433af4478 Mon Sep 17 00:00:00 2001 From: Brett Lykins Date: Thu, 31 Oct 2024 14:19:51 -0400 Subject: [PATCH 3/3] ignore submodule for yamllint --- .yamllint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.yamllint.yml b/.yamllint.yml index 0e9210947b..6a47615bbd 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -10,6 +10,7 @@ ignore: | **/node_modules # https://github.com/sbaudoin/yamllint/issues/16 /helm/templates + /python_sdk rules: new-lines: disable