Add docs for vault-k8s JSON patch (#17712)

From https://github.com/hashicorp/vault-k8s/pull/399

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
This commit is contained in:
Christopher Swenson 2022-11-17 12:32:18 -08:00 committed by GitHub
parent 0217f7de65
commit 9724f2860d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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