Skip to content

ephemeral resource: Add write-only data fields to kubernetes_secret and kubernetes_secret_v1Β #2795

@patope

Description

@patope

Description

Add write-only data fields (data_wo, data_wo_version, binary_data_wo and binary_data_wo_version) to kubernetes_secret resource. Current version makes a copy of data into state and terraform wont assing values to secret from ephemeral source.

Potential Terraform Configuration

resource "kubernetes_secret" "secret" {
  metadata {
    name = "password"
  }
  data_wo = {
    "password" = random_string.password.result
  }
  data_wo_version = 1
}

References

https://www.hashicorp.com/en/blog/terraform-1-10-improves-handling-secrets-in-state-with-ephemeral-values

#2670 Ephemeral resource: Add kubernetes_secret and kubernetes_secret_v1 support

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions