-
Notifications
You must be signed in to change notification settings - Fork 407
Open
Labels
Description
Description
The Helm v3 action.Install struct includes a TakeOwnership field that allows ignoring helm annotation checks and taking
ownership of resources. This feature is currently not exposed in the terraform-provider-helm, making it impossible to use this
functionality through Terraform.
The TakeOwnership field is particularly useful for:
- Migrating existing resources - Taking ownership of resources that were created outside of Helm
- Recovery scenarios - Recovering from situations where Helm metadata is missing or corrupted
- Integration with other tools - Working with resources that may have been modified by other Kubernetes tools
This would allow users to handle edge cases where Helm metadata is missing and provide more flexibility in complex deployment
scenarios.
Potential Terraform Configuration
resource "helm_release" "example" {
name = "my-release"
namespace = "my-namespace"
repository = "https://charts.example.com"
chart = "my-chart"
version = "1.0.0"
take_ownership = true
values = [
file("${path.module}/values.yaml")
]
}References
- https://pkg.go.dev/helm.sh/helm/v3/pkg/action#Install
- https://github.com/helm/helm/blob/main/pkg/action/install.go
- https://helm.sh/docs/helm/helm_install/
Community Note
- Please vote on this issue by adding a π reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
antoine-ansari, DamienDelporte, hugodocto, eze-kiel, Mohsen51 and 11 more