Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nil pointer issue when getting metrics from volume mounter
Currently it is possible that the mounter object stored in Mounted Volume data structure in the actual state of kubelet volume manager is nil if this information is recovered from state sync process. This will cause nil pointer issue when calculating stats in volume_stat_calculator. A quick fix is to not return the volume if its mounter is nil. A more complete fix is to also recover mounter object when reconstructing the volume data structure which will be addressed in PR kubernetes#33616
- Loading branch information