Skip to content

Commit

Permalink
Add cluster_control_plane_unhealthy inhibition. (#1607)
Browse files Browse the repository at this point in the history
* Add `cluster_control_plane_unhealthy` inhibition.

* updated test cases
  • Loading branch information
weseven authored May 6, 2024
1 parent 2109d67 commit d4b6911
Show file tree
Hide file tree
Showing 26 changed files with 155 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add `cluster_control_plane_unhealthy` inhibition.

## [4.74.0] - 2024-05-02

### Changed

- Expose prometheus agent sharding strategies as prometheus-meta-operator configuration parameters so we can experiment with the scaling strategies.
-

## [4.73.1] - 2024-05-01

### Fixed
Expand Down
6 changes: 6 additions & 0 deletions files/templates/alertmanager/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ inhibit_rules:
- cancel_if_cluster_with_notready_nodepools=true
equal: [cluster_id]

- source_matchers:
- cluster_control_plane_unhealthy=true
target_matchers:
- cancel_if_cluster_control_plane_unhealthy=true
equal: [cluster_id]

- source_matchers:
- instance_state_not_running=true
target_matchers:
Expand Down

0 comments on commit d4b6911

Please sign in to comment.