Devenv: Longer provisioning update intervals (#88623)

* Change devenv provision updateinterval to one hour

* Update bulk-dashboards and bulk-folders

* Clear bulk-folders before creating new ones

* Update devenv/bulk-folders/bulk-folders.sh
This commit is contained in:
Tobias Skarhed 2024-06-04 11:00:23 +02:00 committed by GitHub
parent b02a5d6e07
commit 4d4cfaefce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ apiVersion: 1
providers: providers:
- name: 'Bulk dashboards' - name: 'Bulk dashboards'
folder: 'Bulk dashboards' folder: 'Bulk dashboards'
updateIntervalSeconds: 3600
type: file type: file
options: options:
path: devenv/bulk-dashboards path: devenv/bulk-dashboards

View File

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
echo "Deleting previous bulk folders"
find ./bulk-folders -type d -name "Bulk Folder*" -exec rm -rf "{}" \;
numberOfFolders=${1:-200} numberOfFolders=${1:-200}
numberOfDashboardsPerFolder=${2:-3} numberOfDashboardsPerFolder=${2:-3}

View File

@ -3,6 +3,7 @@ apiVersion: 1
providers: providers:
- name: 'Bulk folders' - name: 'Bulk folders'
type: file type: file
updateIntervalSeconds: 3600
options: options:
foldersFromFilesStructure: true foldersFromFilesStructure: true
path: devenv/bulk-folders path: devenv/bulk-folders

View File

@ -6,6 +6,6 @@ providers:
folderUid: '' folderUid: ''
type: file type: file
allowUiUpdates: false allowUiUpdates: false
updateIntervalSeconds: 60 updateIntervalSeconds: 3600
options: options:
path: devenv/dev-dashboards path: devenv/dev-dashboards