# Secret token not generating

**URL:** <https://discuss.kubernetes.io/t/secret-token-not-generating/16923>\
**Category:** General Discussions\
**Tags:** development\
**Created:** [August 1, 2021, 5:10pm UTC](https://discuss.kubernetes.io/t/secret-token-not-generating/16923 "2021-08-01T17:10:17Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Phil1972](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@Phil1972](https://discuss.kubernetes.io/u/Phil1972)\
**Post date:** [September 21, 2022, 1:05pm UTC](https://discuss.kubernetes.io/t/secret-token-not-generating/16923/14 "2022-09-21T13:05:35Z")

</div>

Hi guys,  
In the context of K8S created in Azure, this flag is causing a problem since we cannot map the namespaces to Environment. The mapping fails with the message ‘Could not find any secrets associated with the Service Account.’. Has anyone been able to fix this somehow? I will try to turn off the feature gate ‘LegacyServiceAccountTokenNoAutoGeneration’ to see if it resolves my issue, but so far I could not find any workaround to fix that problem in Azure.

thanks,

---

_[View the full topic](https://discuss.kubernetes.io/t/secret-token-not-generating/16923)._
