chore(ci): deploy loki alloy and track helm values in renovate
Deploy hook installs loki 7.3.0 and alloy 1.12.1 when loki/k8s/active exists. Renovate watches k8s values files.
This commit is contained in:
1 parent
7cca330438
commit
f5f389b440
2 files changed
+19
-1
No files matched your search
@@ -138,6 +138,21 @@ jobs:
|
|||||||
--values "$repo/prometheus-stack/k8s/grafana-values.yaml" \
|
--values "$repo/prometheus-stack/k8s/grafana-values.yaml" \
|
||||||
--wait
|
--wait
|
||||||
fi
|
fi
|
||||||
|
if [ -f "$repo/loki/k8s/active" ]; then
|
||||||
|
echo "== Upgrading loki/alloy =="
|
||||||
|
helm repo add grafana https://grafana.github.io/helm-charts >/dev/null 2>&1 || true
|
||||||
|
helm repo update grafana >/dev/null 2>&1 || true
|
||||||
|
helm upgrade --install loki grafana/loki \
|
||||||
|
--version 7.3.0 \
|
||||||
|
--namespace prometheus \
|
||||||
|
--values "$repo/loki/k8s/loki-values.yaml" \
|
||||||
|
--wait
|
||||||
|
helm upgrade --install alloy grafana/alloy \
|
||||||
|
--version 1.12.1 \
|
||||||
|
--namespace prometheus \
|
||||||
|
--values "$repo/loki/k8s/alloy-values.yaml" \
|
||||||
|
--wait
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${#other_files[@]}" -gt 0 ]; then
|
if [ "${#other_files[@]}" -gt 0 ]; then
|
||||||
echo " resources: ${other_files[*]}"
|
echo " resources: ${other_files[*]}"
|
||||||
|
|||||||
+4
-1
@@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": ["config:recommended"],
|
"extends": ["config:recommended"],
|
||||||
"enabledManagers": ["docker-compose", "kubernetes"],
|
"enabledManagers": ["docker-compose", "kubernetes", "helm-values"],
|
||||||
|
"helm-values": {
|
||||||
|
"managerFilePatterns": ["/k8s/.+values\\.ya?ml$/"]
|
||||||
|
},
|
||||||
"kubernetes": {
|
"kubernetes": {
|
||||||
"managerFilePatterns": ["/k8s/.+\\.ya?ml$/"]
|
"managerFilePatterns": ["/k8s/.+\\.ya?ml$/"]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user