Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to ignore_changes for set. #1529

Open
teu opened this issue Nov 8, 2024 · 0 comments
Open

Ability to ignore_changes for set. #1529

teu opened this issue Nov 8, 2024 · 0 comments
Assignees

Comments

@teu
Copy link

teu commented Nov 8, 2024

Description

In the use case is having databases (or any resource that you might not want to re-start the pod of) as helm_release you want to prevent pod restarts and yet change certain values.

Ability to ignore specific set blocks is essential.

Potential Terraform Configuration

resource "helm_release" "postgresql" {
  chart      = "postgresql"
  repository = "https://charts.bitnami.com/bitnami"


  name      = "default"
  namespace = "default"

# you want to set this once and maintain this after without having to re-start any pod
  set {
    name  = "primary.initdb.scripts"
    value = var.initdb_scripts
  }

lifecycle {
    ignore_changes = [set[name["primary.initdb.scripts].value].0]
  }
}

References

Similar conversation:
hashicorp/terraform#26359 (comment)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants