# Optional secret in extraSecretEnvironmentVars

**URL:** <https://discuss.hashicorp.com/t/optional-secret-in-extrasecretenvironmentvars/49475>\
**Category:** Vault\
**Tags:** k8s, vault\
**Created:** [January 30, 2023, 9:42am UTC](https://discuss.hashicorp.com/t/optional-secret-in-extrasecretenvironmentvars/49475 "2023-01-30T09:42:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![revit13](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/revit13/32/16699_2.png) [@revit13](https://discuss.hashicorp.com/u/revit13)\
**Post date:** [January 30, 2023, 9:42am UTC](https://discuss.hashicorp.com/t/optional-secret-in-extrasecretenvironmentvars/49475/1 "2023-01-30T09:42:37Z")

</div>

I want to load k8s secret content while deploying vault helm chart but I do not want the deployment to fail if it does not exist. the extraSecretEnvironmentVars does not have the optional field. is there another way? Thanks
