forked from rook/rook
Add a new OSD provisioner status (reported by provisioner configmap) that denotes that an OSD is preexisting and that OSD prepare does not need to be run for the OSD. This only applies to OSDs on PVC currently where existence of a deployment for the OSD indicates no further provisioning needs to occur. New status is "preexisting". Allow creating new OSDs on PVCs before updating existing ones by allowing deferring OSDs during processing of OSD provisioning status ConfigMaps. Deferral is identified by new "preexisting" status. Add a unit test to ensure OSD on PVC provisioning occurs as expected including deferring already-created OSDs to be updated after new PVCs are created. Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>