kubernetes_{daemonset,deployment}: set automount_service_account_token to true
flokli opened this issue · 4 comments
flokli commented
Contrary to the kubernetes defaults, the kubernetes terraform provider hardcodes automount_service_account_token to false
:
hashicorp/terraform-provider-kubernetes#38
However, this leads to non-working resources being created, as they rely on that defaulting to true.
k2tf should add
automount_service_account_token = true
meroupatate commented
thank you @flokli i spent two days trying to figure out what was wrong with my deployment and my daemonset 😭
flokli commented
@meroupatate sorry to hear. If there really needs to be this deviation from the defaults, it should really be documented loudly…
flokli commented
It seems terraform-provider-kubernetes pedalled back, and switched over to use the k8s defaults again: hashicorp/terraform-provider-kubernetes#1054