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

PWX-38545 : Failed to create AlertManager object with prometheus-operator v0.75.0 #1642

Merged
merged 3 commits into from
Aug 15, 2024

Conversation

nikita-bhatia
Copy link
Contributor

What this PR does / why we need it:
The AlertManager object creation started failing as soon as PrometheusOperator version is upgraded to 0.75.0.
Turns out Prometheus-operator team has updated the RBAC permissions required by the operator to manage CRDs. Because of this, the operator starts requiring permission "update" on resource "alertmanagers/status" and if users don't update the prometheus-operator SA RBAC, the controller starts but it wouldn't work fully.
prometheus-operator/prometheus-operator#6351

Error in px-prometheus-operator pod
"missing permission on resource \"alertmanagers\" (group: \"monitoring.coreos.com/v1\")" reason="missing \"update\" permission on resource \"alertmanagers/status\" (group: \"monitoring.coreos.com\") for namespace \"kube-system\""

What is changed in this PR?

  • alertmanagers/status Resource is provided permission in px-prometheus-operator clusterrole

Which issue(s) this PR fixes (optional)
Closes # https://purestorage.atlassian.net/browse/PWX-38545

Special notes for your reviewer:

  • Verified on Vanilla k8s cluster, the alert-manager pods started coming up as soon as the permission was added in cluster role.

@nikita-bhatia nikita-bhatia changed the title Add alertmanagers/status PWX-38545 : Failed to create AlertManager object with prometheus-operator v0.7.5.0 Aug 13, 2024
@nikita-bhatia nikita-bhatia requested a review from a team August 13, 2024 18:31
@nikita-bhatia nikita-bhatia changed the title PWX-38545 : Failed to create AlertManager object with prometheus-operator v0.7.5.0 PWX-38545 : Failed to create AlertManager object with prometheus-operator v0.75.0 Aug 13, 2024
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.79%. Comparing base (9bc256c) to head (9b47368).
Report is 1 commits behind head on release-24.2.0.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-24.2.0    #1642   +/-   ##
===============================================
  Coverage           79.79%   79.79%           
===============================================
  Files                  61       61           
  Lines               18833    18834    +1     
===============================================
+ Hits                15028    15029    +1     
  Misses               2715     2715           
  Partials             1090     1090           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@nikolaypopov nikolaypopov left a comment

Choose a reason for hiding this comment

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

LGTM

@nikita-bhatia nikita-bhatia merged commit f37e98f into release-24.2.0 Aug 15, 2024
8 checks passed
@nikita-bhatia nikita-bhatia deleted the alert branch August 15, 2024 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants