Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix capi-kubeadmconfig rule for hybrid providers #1494

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- fix capi-kubeadmconfig rule for hybrid providers

## [4.38.1] - 2025-02-06

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ spec:
- name: capi-kubeadmconfig
rules:
- alert: KubeadmConfigNotReady
expr: capi_kubeadmconfig_status_condition{type="Ready", status="False"} > 0
expr: |-
(
capi_kubeadmconfig_status_condition{type="Ready", status="False"}
* on(cluster_id) group_left(provider)
sum(
label_replace(
capi_cluster_info, "provider", "vsphere", "infrastructure_reference_kind", "VSphereCluster"
)
) by (cluster_id, provider)
) > 0
Comment on lines +13 to +22
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not an expert on PromQL so I may be miss understanding the query, but aren't we basically disabling the alert for non vsphere clusters? We want this alert for all providers.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at all :)

What we are doing here is replace the provider label to vsphere if the cluster type is a VSphereCluster

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes more sense 😄 Thanks! I guess the same would be needed for cloud-director?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need it for cloud-director because we do not have cloud director WCs running on cloud MCs yet.

We might need this for promox and so on i guess

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I would prefer that we try to find a better solution in the long run :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good. Thank y'all for the explanations!

for: 1h
labels:
area: kaas
Expand Down