terraform-provider-kubernetes icon indicating copy to clipboard operation
terraform-provider-kubernetes copied to clipboard

config_map_v1_data same for secret_v1_data

Open Davidffry opened this issue 2 years ago • 1 comments

Description

config_map_v1_data same for secret_v1_data

Potential Terraform Configuration

resource "kubernetes_secret_v1_data" "example" {
  metadata {
    name = "my-config"
  }
  data = {
    "owner" = "myteam"
  }
}

References

Seems no References

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

Davidffry avatar Aug 18 '23 14:08 Davidffry

@Davidffry Hello thank you for opening this issue. Looking at the current config_map_v1_data resource, you can actually copy the existing code and have it do the same operation but for secret by changing certain config_map values to secret. You can certainly open a PR adding this secret_v1_data resource if you'd like.

BBBmau avatar Aug 23 '23 15:08 BBBmau