2023-02-28 20:12:34 +00:00
|
|
|
{% raw %}
|
|
|
|
|
|
|
|
apiVersion: external-secrets.io/v1beta1
|
|
|
|
kind: ExternalSecret
|
|
|
|
metadata:
|
|
|
|
name: azurecr-credentials
|
|
|
|
spec:
|
|
|
|
dataFrom:
|
|
|
|
- sourceRef:
|
|
|
|
generatorRef:
|
|
|
|
apiVersion: generators.external-secrets.io/v1alpha1
|
|
|
|
kind: ACRAccessToken
|
2023-04-26 20:00:14 +00:00
|
|
|
name: my-azurecr
|
2024-11-06 14:23:57 +00:00
|
|
|
refreshInterval: 3h
|
2023-02-28 20:12:34 +00:00
|
|
|
target:
|
|
|
|
name: azurecr-credentials
|
|
|
|
template:
|
|
|
|
type: kubernetes.io/dockerconfigjson
|
|
|
|
data:
|
|
|
|
.dockerconfigjson: |
|
|
|
|
{
|
|
|
|
"auths": {
|
|
|
|
"myregistry.azurecr.io": {
|
|
|
|
"username": "{{ .username }}",
|
2024-06-26 17:50:24 +00:00
|
|
|
"password": "{{ .password }}"
|
2023-02-28 20:12:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endraw %}
|