-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix maintenance rule not being processed
- Loading branch information
Gabriel Saratura
committed
Sep 26, 2023
1 parent
55e4108
commit 4d020a1
Showing
17 changed files
with
122 additions
and
1 deletion.
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
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
tests/golden/apiserver/appcat/appcat/10_appcat_maintenance_recording_rule.yaml
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,15 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: appcat-maintenance | ||
name: appcat-maintenance | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-cluster-maintenance | ||
rules: | ||
- expr: scalar(max(max_over_time(openshift_upgrade_controller_upgradejob_state{state="active"}[10m])) | ||
or vector(0)) | ||
record: appcat:cluster:maintenance |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
tests/golden/cloudscale/appcat/appcat/10_appcat_maintenance_recording_rule.yaml
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,15 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: appcat-maintenance | ||
name: appcat-maintenance | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-cluster-maintenance | ||
rules: | ||
- expr: scalar(max(max_over_time(openshift_upgrade_controller_upgradejob_state{state="active"}[10m])) | ||
or vector(0)) | ||
record: appcat:cluster:maintenance |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
tests/golden/controllers/appcat/appcat/10_appcat_maintenance_recording_rule.yaml
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,15 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: appcat-maintenance | ||
name: appcat-maintenance | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-cluster-maintenance | ||
rules: | ||
- expr: scalar(max(max_over_time(openshift_upgrade_controller_upgradejob_state{state="active"}[10m])) | ||
or vector(0)) | ||
record: appcat:cluster:maintenance |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
tests/golden/defaults/appcat/appcat/10_appcat_maintenance_recording_rule.yaml
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,15 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: appcat-maintenance | ||
name: appcat-maintenance | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-cluster-maintenance | ||
rules: | ||
- expr: scalar(max(max_over_time(openshift_upgrade_controller_upgradejob_state{state="active"}[10m])) | ||
or vector(0)) | ||
record: appcat:cluster:maintenance |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
tests/golden/exoscale/appcat/appcat/10_appcat_maintenance_recording_rule.yaml
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,15 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: appcat-maintenance | ||
name: appcat-maintenance | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-cluster-maintenance | ||
rules: | ||
- expr: scalar(max(max_over_time(openshift_upgrade_controller_upgradejob_state{state="active"}[10m])) | ||
or vector(0)) | ||
record: appcat:cluster:maintenance |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
tests/golden/minio/appcat/appcat/10_appcat_maintenance_recording_rule.yaml
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,15 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: appcat-maintenance | ||
name: appcat-maintenance | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-cluster-maintenance | ||
rules: | ||
- expr: scalar(max(max_over_time(openshift_upgrade_controller_upgradejob_state{state="active"}[10m])) | ||
or vector(0)) | ||
record: appcat:cluster:maintenance |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
tests/golden/openshift/appcat/appcat/10_appcat_maintenance_recording_rule.yaml
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,15 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: appcat-maintenance | ||
name: appcat-maintenance | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-cluster-maintenance | ||
rules: | ||
- expr: scalar(max(max_over_time(openshift_upgrade_controller_upgradejob_state{state="active"}[10m])) | ||
or vector(0)) | ||
record: appcat:cluster:maintenance |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
tests/golden/vshn/appcat/appcat/10_appcat_maintenance_recording_rule.yaml
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,15 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: appcat-maintenance | ||
name: appcat-maintenance | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-cluster-maintenance | ||
rules: | ||
- expr: scalar(max(max_over_time(openshift_upgrade_controller_upgradejob_state{state="active"}[10m])) | ||
or vector(0)) | ||
record: appcat:cluster:maintenance |