diff --git a/CHANGELOG.md b/CHANGELOG.md index d58f6a5..76a81f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,84 @@ # Changelog +## [4.0.0](https://github.com/camptocamp/devops-stack-module-longhorn/compare/v3.9.0...v4.0.0) (2024-10-09) + + +### ⚠ BREAKING CHANGES + +* point the Argo CD provider to the new repository ([#44](https://github.com/camptocamp/devops-stack-module-longhorn/issues/44)) + +### Features + +* point the Argo CD provider to the new repository ([#44](https://github.com/camptocamp/devops-stack-module-longhorn/issues/44)) ([9cd1936](https://github.com/camptocamp/devops-stack-module-longhorn/commit/9cd1936d56b42cc725c8da777ef03220080a2e95)) + +### Migrate provider source `oboukili` -> `argoproj-labs` + +We've tested the procedure found [here](https://github.com/argoproj-labs/terraform-provider-argocd?tab=readme-ov-file#migrate-provider-source-oboukili---argoproj-labs) and we think the order of the steps is not exactly right. This is the procedure we recommend (**note that this should be run manually on your machine and not on a CI/CD workflow**): + +1. First, make sure you are already using version 6.2.0 of the `oboukili/argocd` provider. + +1. Then, check which modules you have that are using the `oboukili/argocd` provider. + +```shell +$ terraform providers + +Providers required by configuration: +. +├── provider[registry.terraform.io/hashicorp/helm] 2.15.0 +├── (...) +└── provider[registry.terraform.io/oboukili/argocd] 6.2.0 + +Providers required by state: + + (...) + + provider[registry.terraform.io/oboukili/argocd] + + provider[registry.terraform.io/hashicorp/helm] +``` + +3. Afterwards, proceed to point **ALL* the DevOps Stack modules to the versions that have changed the source on their respective requirements. In case you have other personal modules that also declare `oboukili/argocd` as a requirement, you will also need to update them. + +4. Also update the required providers on your root module. If you've followed our examples, you should find that configuration on the `terraform.tf` file in the root folder. + +5. Execute the migration via `terraform state replace-provider`: + +```bash +$ terraform state replace-provider registry.terraform.io/oboukili/argocd registry.terraform.io/argoproj-labs/argocd +Terraform will perform the following actions: + + ~ Updating provider: + - registry.terraform.io/oboukili/argocd + + registry.terraform.io/argoproj-labs/argocd + +Changing 13 resources: + + module.argocd_bootstrap.argocd_project.devops_stack_applications + module.secrets.module.secrets.argocd_application.this + module.metrics-server.argocd_application.this + module.efs.argocd_application.this + module.loki-stack.module.loki-stack.argocd_application.this + module.thanos.module.thanos.argocd_application.this + module.cert-manager.module.cert-manager.argocd_application.this + module.kube-prometheus-stack.module.kube-prometheus-stack.argocd_application.this + module.argocd.argocd_application.this + module.traefik.module.traefik.module.traefik.argocd_application.this + module.ebs.argocd_application.this + module.helloworld_apps.argocd_application.this + module.helloworld_apps.argocd_project.this + +Do you want to make these changes? +Only 'yes' will be accepted to continue. + +Enter a value: yes + +Successfully replaced provider for 13 resources. +``` + +6. Perform a `terraform init -upgrade` to upgrade your local `.terraform` folder. + +7. Run a `terraform plan` or `terraform apply` and you should see that everything is OK and that no changes are necessary. + ## [3.9.0](https://github.com/camptocamp/devops-stack-module-longhorn/compare/v3.8.0...v3.9.0) (2024-10-07) diff --git a/README.adoc b/README.adoc index 3b03126..d96454f 100644 --- a/README.adoc +++ b/README.adoc @@ -299,7 +299,7 @@ Description: Override of target revision of the application chart. Type: `string` -Default: `"v3.9.0"` +Default: `"v4.0.0"` ==== [[input_helm_values]] <> @@ -588,9 +588,9 @@ Description: ID to pass other modules in order to refer to this module as a depe |=== |Name |Version |[[provider_random]] <> |>= 3 -|[[provider_null]] <> |n/a |[[provider_argocd]] <> |>= 6 |[[provider_utils]] <> |>= 1 +|[[provider_null]] <> |n/a |=== = Resources @@ -656,7 +656,7 @@ Description: ID to pass other modules in order to refer to this module as a depe |[[input_target_revision]] <> |Override of target revision of the application chart. |`string` -|`"v3.9.0"` +|`"v4.0.0"` |no |[[input_helm_values]] <> diff --git a/variables.tf b/variables.tf index 9e73e4a..4b9e884 100644 --- a/variables.tf +++ b/variables.tf @@ -48,7 +48,7 @@ variable "destination_cluster" { variable "target_revision" { description = "Override of target revision of the application chart." type = string - default = "v3.9.0" # x-release-please-version + default = "v4.0.0" # x-release-please-version } variable "helm_values" { diff --git a/version.txt b/version.txt index a5c4c76..fcdb2e1 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.9.0 +4.0.0