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

Adds Helm docs for dockerconfigjson template (#1307)

This commit is contained in:
cebidhem 2022-06-29 15:24:59 +02:00 committed by GitHub
parent edbdb0f576
commit 284ea9e0f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 2 deletions

View file

@ -19,6 +19,14 @@ Then create a ExternalSecret resource taking advantage of templating to populate
{% include 'gcpsm-docker-config-externalsecret.yaml' %}
```
For Helm users: since Helm interprets the template above, the ExternalSecret resource can be written this way:
```yaml
{% include 'gcpsm-docker-config-helm-externalsecret.yaml' %}
```
For more information, please see [this issue](https://github.com/helm/helm/issues/2798)
This will generate a valid dockerconfigjson secret for you to use!
You can get the final value with:
@ -73,5 +81,5 @@ kubectl get secret secret-to-be-created -n <namespace> | -o jsonpath="{.data.ssh
## More examples
!!! note "We need more examples here"
Feel free to contribute with our docs and add more examples here!
!!! note "We need more examples here"
Feel free to contribute with our docs and add more examples here!

View file

@ -0,0 +1,23 @@
{% raw %}
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: dk-cfg-example
spec:
refreshInterval: 1h
secretStoreRef:
name: example
kind: SecretStore
target:
template:
type: kubernetes.io/dockerconfigjson
engineVersion: v2
data:
.dockerconfigjson: "{{ `{{ .mysecret }}` }}"
name: secret-to-be-created
creationPolicy: Owner
data:
- secretKey: mysecret
remoteRef:
key: docker-config-example
{% endraw %}