chao: grant access to policy/poddisruptionbudgets#143
Merged
Conversation
sirged
approved these changes
Jun 25, 2026
There was a problem hiding this comment.
Pull request overview
Adds RBAC permissions needed for chao to watch PodDisruptionBudgets, and bumps the Helm chart version to reflect the RBAC surface change.
Changes:
- Extend the
gremlin-watcherClusterRole with access topolicy/poddisruptionbudgets. - Bump chart version
0.25.3→0.25.4.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| gremlin/templates/chao-service-account.yaml | Adds ClusterRole permissions for policy/poddisruptionbudgets to support the new informer. |
| gremlin/Chart.yaml | Increments chart version to reflect the RBAC change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+36
to
+38
| - apiGroups: ["policy"] | ||
| resources: ["poddisruptionbudgets"] | ||
| verbs: ["get", "watch", "list"] |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chao: grant access to policy/poddisruptionbudgets
Adds list/watch on
policy/v1.PodDisruptionBudgetto thegremlin-watcherClusterRole. Pairs with thedeploy/chao.ymlchange in gremlin/chao#331.Why
Chao now watches PodDisruptionBudgets so the service-side detected-risk engine can evaluate
Kubernetes PodDisruptionBudget Missing(EN-10918). Without the matching RBAC rule on the customer's cluster, chao's startup probe fails onpolicy/v1.poddisruptionbudgets, the agent emits theDD009error code and skips the PDB informer, and the risk silently has no data to evaluate against.What changes
gremlin/templates/chao-service-account.yaml— adds the rule, matching the pattern of existing access-gated resources likeautoscaling/horizontalpodautoscalersandnetworking.k8s.io/ingresses.gremlin/Chart.yaml— bumps chart version 0.25.3 → 0.25.4 to reflect the changed RBAC surface.Risk
Low. Additive RBAC change; doesn't remove or modify existing permissions. Clusters