ci(deploy): helm upgrade kube-prometheus-stack when active
This commit is contained in:
1 parent
360a6fc5dc
commit
ccec1102ef
1 file changed
+9
@@ -130,6 +130,15 @@ jobs:
|
|||||||
echo " namespaces first: ${ns_files[*]}"
|
echo " namespaces first: ${ns_files[*]}"
|
||||||
kubectl apply -f "${ns_files[@]}"
|
kubectl apply -f "${ns_files[@]}"
|
||||||
fi
|
fi
|
||||||
|
if [ -f "$repo/prometheus-stack/k8s/active" ]; then
|
||||||
|
echo "== Upgrading kube-prometheus-stack =="
|
||||||
|
helm upgrade --install prometheus-stack prometheus-community/kube-prometheus-stack \
|
||||||
|
--namespace prometheus \
|
||||||
|
--version 86.2.3 \
|
||||||
|
--values "$repo/prometheus-stack/k8s/grafana-values.yaml" \
|
||||||
|
--wait
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${#other_files[@]}" -gt 0 ]; then
|
if [ "${#other_files[@]}" -gt 0 ]; then
|
||||||
echo " resources: ${other_files[*]}"
|
echo " resources: ${other_files[*]}"
|
||||||
kubectl apply "${prune_opts[@]}" -f "${other_files[@]}"
|
kubectl apply "${prune_opts[@]}" -f "${other_files[@]}"
|
||||||
|
|||||||
Reference in new issue
Block a user