Skip to content

Draft: Dynamically generate PDB alerts#99

Open
simu wants to merge 1 commit into
masterfrom
feat/dynamic-pdb-alerts
Open

Draft: Dynamically generate PDB alerts#99
simu wants to merge 1 commit into
masterfrom
feat/dynamic-pdb-alerts

Conversation

@simu
Copy link
Copy Markdown
Member

@simu simu commented Jan 23, 2026

Initial draft simply generates alerts with restricted namespace selector (only namespaces which have annotation
openshift.io/cluster-monitoring=true) if there are any NodeForceDrain resources deployed on the cluster.

Note that this can be incorrect, if the NodeForceDrain resources have specific namespace selectors. Additionally, even a smarter version can be incorrect if the NodeForceDrain has JQ pod selector expressions.

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

@simu simu requested a review from a team as a code owner January 23, 2026 15:24
Base automatically changed from feat/add-missing-rbac-aggregation to master January 23, 2026 15:26
@simu simu force-pushed the feat/dynamic-pdb-alerts branch from 7f8d92f to 076ff17 Compare January 23, 2026 15:26
Initial draft simply generates alerts with restricted namespace selector
(only namespaces which have annotation
`openshift.io/cluster-monitoring=true`) if there are any
`NodeForceDrain` resources deployed on the cluster.

Note that this can be incorrect, if the `NodeForceDrain` resources have
specific namespace selectors. Additionally, even a smarter version can
be incorrect if the `NodeForceDrain` has JQ pod selector expressions.
@simu simu force-pushed the feat/dynamic-pdb-alerts branch from 076ff17 to da25ae8 Compare January 23, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant