From 9724f2860d50a05ddc338e9e529a8a0d0b9c8d5c Mon Sep 17 00:00:00 2001 From: Christopher Swenson Date: Thu, 17 Nov 2022 12:32:18 -0800 Subject: [PATCH] Add docs for vault-k8s JSON patch (#17712) From https://github.com/hashicorp/vault-k8s/pull/399 Co-authored-by: Tom Proctor --- .../content/docs/platform/k8s/injector/annotations.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/content/docs/platform/k8s/injector/annotations.mdx b/website/content/docs/platform/k8s/injector/annotations.mdx index 9e000dd4e..35395c7d8 100644 --- a/website/content/docs/platform/k8s/injector/annotations.mdx +++ b/website/content/docs/platform/k8s/injector/annotations.mdx @@ -215,6 +215,14 @@ them, optional commands to run, etc. - `vault.hashicorp.com/go-max-procs` - set the `GOMAXPROCS` environment variable for injected agents +- `vault.hashicorp.com/agent-json-patch` - change the injected agent sidecar container using a [JSON patch](https://jsonpatch.com/) before it is created. + This can be used to add, remove, or modify any attribute of the container. + For example, setting this to `[{"op": "replace", "path": "/name", "value": "different-name"}]` will update the agent container's name to be `different-name` + instead of the default `vault-agent`. + +- `vault.hashicorp.com/agent-init-json-patch` - same as `vault.hashicorp.com/agent-json-patch`, except that the JSON patch will be applied to the + injected init container instead. + ## Vault Annotations Vault annotations change how the Vault Agent containers communicate with Vault. For