mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
907e8ebc82
* Fix ACR External Secret example Signed-off-by: Nathan Ellenfield <nathan.ellenfield@allscripts.com> * Fix typos in acr generator docs Signed-off-by: Nathan Ellenfield <nathan.ellenfield@allscripts.com> --------- Signed-off-by: Nathan Ellenfield <nathan.ellenfield@allscripts.com>
29 lines
672 B
YAML
29 lines
672 B
YAML
{% raw %}
|
|
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: azurecr-credentials
|
|
spec:
|
|
dataFrom:
|
|
- sourceRef:
|
|
generatorRef:
|
|
apiVersion: generators.external-secrets.io/v1alpha1
|
|
kind: ACRAccessToken
|
|
name: my-azurecr
|
|
refreshInterval: 12h
|
|
target:
|
|
name: azurecr-credentials
|
|
template:
|
|
type: kubernetes.io/dockerconfigjson
|
|
data:
|
|
.dockerconfigjson: |
|
|
{
|
|
"auths": {
|
|
"myregistry.azurecr.io": {
|
|
"username": "{{ .username }}",
|
|
"password": "{{ .password }}"
|
|
}
|
|
}
|
|
}
|
|
{% endraw %}
|