Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Can not update sensitive variables if non sensitive variables don't have any change #161

@yqxiaxia

Description

@yqxiaxia

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

terraform-k8s & Kubernetes Version

Affected Resource(s)

Terraform Configuration Files

# Copy-paste your Terraform configuration from the operator here.
# To retrieve the configuration, use `kubectl -n $NAMESPACE describe configmap $WORKSPACE_NAME`

Debug Output

Expected Behavior

Always update sensitive variables before a Run. Applying a workspace with sensitive or nonsensitive variable change, the workspace update should always be triggered

Actual Behavior

Hi team, I applied workspace with sensitive variable change, but no nonsensitive variable changes. And then it would not trigger workspace update.

Check the code here: https://github.com/hashicorp/terraform-k8s/blob/main/workspacehelper/tfc_variable.go#L135
it shows if there is no nonsensitive variable change, will skip the sensitive variables change.

why should do this?

Steps to Reproduce

Important Factoids

References

  • #0000

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions