-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
71 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Upgrading from 2.1.X to 2.2.0 | ||
|
||
Upgrading to `2.2.0` from `2.1.X` will destroy and recreate the ingress nginx controller resource since now we're using the external module hosted on [GitHub](https://github.com/sparkfabrik/terraform-helm-ingress-nginx/). | ||
To avoid that you will need to use the `moved` resource: | ||
|
||
```hcl | ||
moved { | ||
from = module.MODULE_NAME.helm_release.ingress_nginx_release | ||
to = module.MODULE_NAME.helm_release.this | ||
} | ||
``` | ||
|
||
Upgrading to `2.2.0` from `2.1.X` will also destroy and recreate the namespace, which is caused by the change of the `kubernetes_namespace` to `kubernetes_namespace_v1` resource. | ||
You will need to import the new resource with the name of the current namespace. | ||
You can do it using the `import` resource to import the new resource using the id of the old one: | ||
|
||
```hcl | ||
import { | ||
to = module.MODULE_NAME.kubernetes_namespace_v1.this[0] | ||
id = NS_NAME | ||
} | ||
``` | ||
|
||
Or manually using the terraform cli: | ||
|
||
```bash | ||
terraform import module.MODULE_NAME.kubernetes_namespace_v1.this[0] NS_NAME | ||
``` | ||
|
||
And then you have to remove manually the old one from the state: | ||
|
||
```bash | ||
terraform state rm module.MODULE_NAME.kubernetes_namespace.ingress_nginx | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters