type StorageReadinessHook … // NewStorageReadinessHook created new StorageReadinessHook. func NewStorageReadinessHook(timeout time.Duration) *StorageReadinessHook { … } func (h *StorageReadinessHook) RegisterStorage(gvr metav1.GroupVersionResource, storage rest.StorageWithReadiness) { … } func (h *StorageReadinessHook) check() bool { … } func (h *StorageReadinessHook) Hook(ctx PostStartHookContext) error { … }