Co-authored-by: Clarity-89 <homes89@ukr.net> Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com>
27 lines
911 B
Cheetah
27 lines
911 B
Cheetah
{
|
|
"apiVersion": "provisioning.grafana.app/v0alpha1",
|
|
"kind": "Repository",
|
|
"metadata": {
|
|
"name": "{{ or .Name "git-repository" }}"
|
|
},
|
|
"spec": {
|
|
"title": "{{ or .Title .Name "Git repository" }}",
|
|
"description": "{{ or .Description .Name "Load grafana dashboard from fake repository" }}",
|
|
"type": "git",
|
|
"git": {
|
|
"url": "{{ or .URL "https://github.com/grafana/grafana-git-sync-demo" }}",
|
|
"branch": "{{ or .Branch "integration-test" }}",
|
|
"path": "{{ or .Path "grafana/" }}"
|
|
},
|
|
"sync": {
|
|
"enabled": {{ if .SyncEnabled }} true {{ else }} false {{ end }},
|
|
"target": "{{ or .SyncTarget "folder" }}",
|
|
"intervalSeconds": {{ or .SyncIntervalSeconds 60 }}
|
|
},
|
|
"workflows": []
|
|
},
|
|
"secure": {
|
|
"token": { "create": "{{ or .Token "" }}" }
|
|
}
|
|
}
|