Add support for PriorityClass in FileIntegrity#874
Add support for PriorityClass in FileIntegrity#874cturiel wants to merge 1 commit intoopenshift:masterfrom
Conversation
Adds an optional priorityClassName field to FileIntegrity spec. When set, all pods created by the file-integrity operator (daemon pods) will be launched using the specified PriorityClass. The operator validates the PriorityClass exists and clears invalid values to prevent pod creation failures. Includes RBAC permissions, validation logic, and e2e tests.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cturiel The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @cturiel. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Add PriorityClass support to FileIntegrity
This PR adds a
priorityClassNamefield to the FileIntegrity CR so you can set pod priority for the daemon pods.Why?
In clusters under resource pressure, the file integrity daemon pods may fail to schedule because nodes don't have enough available resources. By setting a PriorityClass, these pods can preempt lower-priority workloads, ensuring they get scheduled and can run successfully on all nodes. PriorityClass documentation
Right now there's no way to control this, so file integrity monitoring can fail on busy nodes.
The compliance-operator already has this feature, so I followed the same pattern. ComplianceAsCode/compliance-operator#71
What changed
API:
priorityClassNamefield to FileIntegrity specController:
Tests:
Docs:
Example