-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: renovate grafana dashboard revisions
- Loading branch information
Showing
11 changed files
with
155 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"customDatasources": { | ||
"grafana-dashboards": { | ||
"defaultRegistryUrlTemplate": "https://grafana.com/api/dashboards/{{packageName}}", | ||
"format": "json", | ||
"transformTemplates": [ | ||
"{\"releases\":[{\"version\": $string(revision)}]}" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"customManagers": [ | ||
{ | ||
"description": "Process generic dependencies in YAML files", | ||
"fileMatch": [ | ||
"(^|/)\\.taskfiles/.+\\.ya?ml(\\.j2)?$", | ||
"(^|/)talos/.+\\.ya?ml(\\.j2)?$", | ||
"(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$" | ||
], | ||
"matchStrings": [ | ||
"# renovate: datasource=(?<datasource>.*?)(?:\\s+extractVersion=(?<extractVersion>.+?))?(?:\\s+versioning=(?<versioning>.+?))?\\s+depName=(?<depName>.+?)?\\s(?:\\s+.*(?:[v|V]ersion):\\s+(?<currentValue>.*))?(?:\\s.*(?:[r|R]ef):\\s+(?<currentDigest>.*))?" | ||
], | ||
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}" | ||
}, | ||
{ | ||
"description": "Process custom dependencies", | ||
"fileMatch": [ | ||
"(^|/)talos/.+\\.ya?ml(\\.j2)?$", | ||
"(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$" | ||
], | ||
"matchStrings": [ | ||
// Example: `- https://github.com/rancher/system-upgrade-controller/releases/download/v0.11.0/crd.yaml` | ||
// `- https://github.com/argoproj/argo-cd/raw/v2.7.10/manifests/install.yaml` | ||
// `- https://github.com/argoproj/argo-cd/raw/v2.7.10/manifests/ha/install.yaml` | ||
// `- https://raw.githubusercontent.com/keycloak/keycloak-k8s-resources/21.1.1/kubernetes/kubernetes.yml` | ||
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?\n.*?-\\s(.*?)\/(?<currentValue>(v|\\d)[^/]+)\/\\S+\n", | ||
// Example: apiVersion=helm.cattle.io/v1 kind=HelmChart | ||
"datasource=(?<datasource>\\S+)\n.*?repo: (?<registryUrl>\\S+)\n.*?chart: (?<depName>\\S+)\n.*?version: (?<currentValue>\\S+)\n" | ||
], | ||
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}", | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" | ||
}, | ||
{ | ||
"description": "Process Grafana dashboards", | ||
"fileMatch": [ | ||
"(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$" | ||
], | ||
"matchStrings": [ | ||
"#\\s+renovate:\\s+depName=\"(?<depName>.*)\"\\n\\s+gnetId:\\s+(?<packageName>.*?)\\n\\s+revision:\\s+(?<currentValue>.*)" | ||
], | ||
"customType": "regex", | ||
"versioningTemplate": "regex:^(?<major>\\d+)$", | ||
"datasourceTemplate": "custom.grafana-dashboards" | ||
}, | ||
{ | ||
"description": "Process CloudnativePG Postgresql version", | ||
"fileMatch": [ | ||
"(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$" | ||
], | ||
"matchStrings": [ | ||
"imageName: (?<depName>\\S+):(?<currentValue>.*\\-.*)" | ||
], | ||
"datasourceTemplate": "docker", | ||
"versioningTemplate": "redhat" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"description": "Loose versioning for non-semver packages", | ||
"matchDatasources": ["docker"], | ||
"versioning": "loose", | ||
"matchPackagePatterns": ["plex", "qbittorrent"] | ||
}, | ||
{ | ||
"description": "Custom versioning for i915-ucode and intel-ucode", | ||
"matchDatasources": ["docker"], | ||
"versioning": "regex:^(?<major>\\d{4})(?<minor>\\d{2})(?<patch>\\d{2})\\.?(?<build>\\d+)?$", | ||
"matchPackageNames": [ | ||
"ghcr.io/siderolabs/i915-ucode", | ||
"ghcr.io/siderolabs/intel-ucode" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters