forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add label with access mode to SELinux metrics
In the KEP 1710 we promised to have all SELinux metrics with access mode label, so cluster admin is able to distinguish when RWOP volumes are failing to mount (-> SELinuxMountReadWriteOncePod feature gate must be disabled) or volumes with any other access modes are failing (-> SELinuxMount feature gate must be disabled). Adding the label to kubelet is quite straightforward, there were some changes needed in the e2e test. Now grabMetrics() collects values of all SELinux related metrics with all labels. It only skips unrelated volume plugins. And waitForMetricIncrease gets metric with all labels on input, so it can check that say RWOP metric increased and RWX one did not.
- Loading branch information
Showing
3 changed files
with
133 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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