杨军10092085
361e4ff0fa
volume: use contextual logging
2023-03-14 08:37:30 +08:00
Jan Safranek
e575e60ea4
Reconstruct SELinux mount option
...
When reconstructing volumes from disk after kubelet restart, reconstruct
also context=XYZ mount option and add it to the ActualStateOfWorld.
2022-11-08 11:17:38 +01:00
Jan Safranek
9a98f7318b
Increase verbosity of volume reconstruction messages
...
Add volume reconstruction logs to V(2) to see initial kubelet
ActualStateOfWorld after kubelet start. Kubelet logs SetUp / TearDown
events at V(2) already, so we can track the whole volume mount state in
V(2) logs.
2022-11-07 11:05:27 +01:00
Jan Safranek
286e19c460
Add node name parameter
...
Add nodeName to MarkVolumeAsAttached. MarkVolumeAsAttached implementation
in kubelet does not use the parameter, but it could do that in the future.
2022-11-07 10:50:23 +01:00
Jan Safranek
3a79466ddd
Reshuffle functions between reconstruct and reconstruc_common
...
Move common functions to reconstruc_common.go and functions used only for
the current (old) reconstruction to reconstruct.go
2022-11-03 16:55:13 +01:00
Jan Safranek
fc245b339b
Refactor ConstructVolumeSpec
...
Return a struct from ConstructVolumeSpec to be able to add more fields to
it later.
2022-11-03 16:55:13 +01:00
Jan Safranek
989e391d08
Move all volume reconstruction code into separate files
...
There is no code change, just moving code around and preparing for the
subsequent commit.
2022-11-02 15:58:21 +01:00