diff --git a/pkg/kubelet/volumemanager/reconciler/reconstruct_common.go b/pkg/kubelet/volumemanager/reconciler/reconstruct_common.go index 443669e13e0..584ce9bff0d 100644 --- a/pkg/kubelet/volumemanager/reconciler/reconstruct_common.go +++ b/pkg/kubelet/volumemanager/reconciler/reconstruct_common.go @@ -38,6 +38,8 @@ import ( utilstrings "k8s.io/utils/strings" ) +// these interfaces are necessary to keep the structures private +// and at the same time log them correctly in structured logs. var _ logr.Marshaler = podVolume{} var _ logr.Marshaler = reconstructedVolume{} var _ logr.Marshaler = globalVolumeInfo{}