Skip to content

Commit

Permalink
chore: move k8s mixin alerts to generated dir
Browse files Browse the repository at this point in the history
  • Loading branch information
stehessel committed Apr 27, 2024
1 parent 8933c1d commit 3c696e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"rules": [
"prometheus/billing-rules.yaml",
"prometheus/kubernetes-mixin-alerts.yaml",
"prometheus/generated/kubernetes-mixin-alerts.yaml",
"prometheus/prometheus-rules.yaml",
"prometheus/rhacs-recording-rules.yaml"
],
Expand Down
2 changes: 1 addition & 1 deletion resources/mixins/kubernetes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ update-jb:
.PHONY: alerts
alerts:
@jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusAlerts)' > generated/alerts.yml
@yq '.spec += load("generated/alerts.yml")' templates/alerts.yaml > ../../prometheus/kubernetes-mixin-alerts.yaml
@yq '.spec += load("generated/alerts.yml")' templates/alerts.yaml > ../../prometheus/generated/kubernetes-mixin-alerts.yaml

.PHONY:
dashboards: templates/dashboards/*
Expand Down

0 comments on commit 3c696e3

Please sign in to comment.