# What is the default format of Vault Agent template , is it in GO struct or pure key-value pairs?

**URL:** <https://discuss.hashicorp.com/t/what-is-the-default-format-of-vault-agent-template-is-it-in-go-struct-or-pure-key-value-pairs/7486>\
**Category:** Vault\
**Tags:** k8s\
**Created:** [April 8, 2020, 8:26am UTC](https://discuss.hashicorp.com/t/what-is-the-default-format-of-vault-agent-template-is-it-in-go-struct-or-pure-key-value-pairs/7486 "2020-04-08T08:26:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leorric](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/leorric/32/5866_2.png) [@leorric](https://discuss.hashicorp.com/u/leorric)\
**Post date:** [April 8, 2020, 8:26am UTC](https://discuss.hashicorp.com/t/what-is-the-default-format-of-vault-agent-template-is-it-in-go-struct-or-pure-key-value-pairs/7486/1 "2020-04-08T08:26:41Z")

</div>

Hi there,

I am trying to inject secrets to k8s pod via sidecar and I am a bit confused about the default format of the injected secrets.

In this blog , [Injecting Vault Secrets Into Kubernetes Pods via a Sidecar](https://www.hashicorp.com/blog/injecting-vault-secrets-into-kubernetes-pods-via-a-sidecar/) . it says the secret is in GO struct format , something like:

> data: map[password:foobarbazpass username:foobaruser]  
> metadata: map[created\_time:2019-12-16T01:01:58.869828167Z deletion\_time: destroyed:false version:1]

Yet in this Vault document , [Agent Sidecar Injector Overview | Vault | HashiCorp Developer](https://www.vaultproject.io/docs/platform/k8s/injector/). It mentions “If no template is provided the following generic template is used:”

> {{ with secret “/path/to/secret” }}  
> {{ range $k, $v := .Data }}  
> {{ $k }}: {{ $v }}  
> {{ end }}  
> {{ end }}

So I am not clear in which case the secret format is GO struct and in which the format is pure key-value pairs? Appreciate if anyone can help to explain this.

Best regards,  
James You
