correcting README

This commit is contained in:
jillianwilson
2021-11-04 16:36:14 -03:00
parent af00cb27c7
commit 1e1e3490c6

View File

@@ -67,10 +67,10 @@ kubectl create -f deploy/mutatingwebhook-ca-bundle.yaml
## Usage ## Usage
For every namespace you want the 1Password Secret Injector to inject secrets for, you must add the label `sidecar-injector=enabled` label to the namespace: For every namespace you want the 1Password Secret Injector to inject secrets for, you must add the label `op-secret-injection=enabled` label to the namespace:
``` ```
kubectl label namespace injection sidecar-injection=enabled kubectl label namespace <namespace> op-secret-injection=enabled
``` ```
To inject a 1Password secret as an environment variable, your pod or deployment you must add an environment variable to the resource with a value referencing your 1Password item in the format `op://<vault>/<item>[/section]/<field>`. You must also annotate your pod/deployment spec with `operator.1password.io/inject` which expects a comma separated list of the names of the containers to that will be mutated and have secrets injected. To inject a 1Password secret as an environment variable, your pod or deployment you must add an environment variable to the resource with a value referencing your 1Password item in the format `op://<vault>/<item>[/section]/<field>`. You must also annotate your pod/deployment spec with `operator.1password.io/inject` which expects a comma separated list of the names of the containers to that will be mutated and have secrets injected.