Vault Agent Injector dynamic Environment Variables

Hello,
I was reviewing the example for creating an environmental variable template(here) and was wondering if there was a way to do this dynamically…like if you didn’t know any of the key names but wanted the key name to be the name of the variable and the value to be the variable’s value. Here is the code of the example but as you can see the variable name api_key is static and the vault key name(payments_api_key) is known.

apiVersion: apps/v1
kind: Deployment
metadata:
name: web-deployment
labels:
app: web
spec:
replicas: 1
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
annotations:
vault.hashicorp.com/agent-inject: “true”
vault.hashicorp.com/role: “web”
vault.hashicorp.com/agent-inject-secret-config: “secret/data/web”
# Environment variable export template
vault.hashicorp.com/agent-inject-template-config: |
{{ with secret “secret/data/web” -}}
export api_key="{{ .Data.data.payments_api_key }}"
{{- end }}
spec:
serviceAccountName: web
containers:
- name: web
image: alpine:latest
args: [“sh”, “-c”, "source /vault/secrets/config && "]
ports:
- containerPort: 9090

Please let me know if you can offer any help or if someone has an example.
Thanks,

Chris.