-
Notifications
You must be signed in to change notification settings - Fork 23
Fix: Remove prometheus-k8s RBAC and prune watch rules #1267
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
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR streamlines monitoring setup by removing explicit Role/RoleBinding creation for the Prometheus service account across controllers, adjusts cluster RBAC to drop redundant watch permissions, updates deployment config, and enables monitoring by default in sample CRs. Entity relationship diagram for RBAC changes (Role/RoleBinding removal)erDiagram
PROMETHEUS_K8S_SERVICE_ACCOUNT ||--o{ ROLE : "was bound by"
PROMETHEUS_K8S_SERVICE_ACCOUNT ||--o{ ROLE_BINDING : "was bound by"
ROLE ||--o{ ROLE_BINDING : "referenced by"
ROLE_BINDING {
string name
string namespace
string roleRef
string subject
}
ROLE {
string name
string namespace
PolicyRule[] rules
}
PROMETHEUS_K8S_SERVICE_ACCOUNT {
string name
string namespace
}
%% These relationships are now removed
Class diagram for monitoring action changes in controllersclassDiagram
class monitoringAction {
+Handle(ctx, instance)
-Role creation logic (removed)
-RoleBinding creation logic (removed)
+ServiceMonitor creation logic
}
monitoringAction <|-- RekorMonitoringAction
monitoringAction <|-- ServerMonitoringAction
monitoringAction <|-- CTlogMonitoringAction
monitoringAction <|-- FulcioMonitoringAction
monitoringAction <|-- TSAMonitoringAction
monitoringAction <|-- TrillianLogServerMonitoringAction
monitoringAction <|-- TrillianLogSignerMonitoringAction
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dd682e6 to
e2806e0
Compare
|
@sourcery-ai title |
|
@sourcery-ai summary |
Summary by Sourcery
Remove automatic creation of RBAC roles and bindings for the prometheus-k8s service account and update sample configurations accordingly
Bug Fixes:
Enhancements:
Documentation: