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

Support Customized Request Header Fields For Provider

Open kexiaodong opened this issue 3 years ago • 1 comments

Description

Customized Request Header Fields are need by some kubernetes provider. For example, we can use X-Request-ID to locate problems and trace tasks, and we can use X-Forwarded-Proto for identifying the originating protocol.

Potential Terraform Configuration

provider "kubernetes" {
  host = var.cluster_endpoint
  insecure = true

  external_headers = {
    x-request-id = var.requestid
    x-forwarded-proto = var.proto
  }
  
}

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

kexiaodong avatar Jun 01 '22 06:06 kexiaodong

Hi @kexiaodong,

Could you please give us some examples of when this feature will be useful?

Thank you.

arybolovlev avatar Jun 01 '22 16:06 arybolovlev

Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you!

github-actions[bot] avatar Jun 02 '23 00:06 github-actions[bot]