terraform-provider-kubernetes
terraform-provider-kubernetes copied to clipboard
Issue when attempting to create kubernetes secret
Terraform Version, Provider Version and Kubernetes Version
Terraform version: v0.15.5
Kubernetes provider version: v2.4.1
Kubernetes version: 1.20.9_1547
Affected Resource(s)
Terraform Configuration Files
resource "kubernetes_secret" "wdp-dev-sa-token" {
metadata {
name = "wdp-dev-sa-token"
namespace = kubernetes_namespace.wdp-dev.metadata[0].name
annotations = {
"kubernetes.io/service-account.name" = "wdp-secrets-sa"
}
}
type = "kubernetes.io/service-account-token"
depends_on = [kubernetes_namespace.wdp-dev]
}
resource "kubernetes_secret" "wdp-staging-sa-token" {
metadata {
name = "wdp-staging-sa-token"
namespace = kubernetes_namespace.wdp-staging.metadata[0].name
annotations = {
"kubernetes.io/service-account.name" = "wdp-secrets-sa"
}
}
type = "kubernetes.io/service-account-token"
depends_on = [kubernetes_namespace.wdp-staging]
}
Debug Output
Steps to Reproduce
Expected Behavior
Create a kubernetes secret for use with a new kubernetes service account
Actual Behavior
terraform failure.
Important Factoids
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
Hi @sflaherty2009,
Do you still have this issue with the latest provider version? If so, please provide more details about the issue, like the error message you observe and debug output.
Thank you.
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!