sl1pm4t/k2tf

kubernetes_{daemonset,deployment}: set automount_service_account_token to true

flokli opened this issue · 4 comments

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

thank you @flokli i spent two days trying to figure out what was wrong with my deployment and my daemonset 😭

@meroupatate sorry to hear. If there really needs to be this deviation from the defaults, it should really be documented loudly…

It seems terraform-provider-kubernetes pedalled back, and switched over to use the k8s defaults again: hashicorp/terraform-provider-kubernetes#1054

I think this is resolved upstream (as pointed out above by @flokli ), so going to close this.