1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

Update common-k8s-secret-types.md to fix get secret jsonpath (#3434)

Signed-off-by: Tyki6 <57527739+tyki6@users.noreply.github.com>
This commit is contained in:
Tyki6 2024-04-30 19:15:10 +02:00 committed by GitHub
parent bfea380daa
commit e32233f401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@ This will generate a valid dockerconfigjson secret for you to use!
You can get the final value with:
```bash
kubectl get secret secret-to-be-created -n <namespace> -o jsonpath="{.data\.dockerconfigjson}" | base64 -d
kubectl get secret secret-to-be-created -n <namespace> -o jsonpath="{.data.\.dockerconfigjson}" | base64 -d
```
Alternately, if you only have the container registry name and password value, you can take advantage of the advanced ExternalSecret templating functions to create the secret: