Add support for PriorityClass in FileIntegrity #874
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.
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