containerized-data-importer/pkg/controller
Alexander Wels c707e781a9
Add conditions to DataVolume and add condition annotation to PVCs (#1194)
* Add conditions to DataVolume and add condition annotation to PVCs

Signed-off-by: Alexander Wels <awels@redhat.com>

* Added reason codes to conditions
Updated functional tests to use reason codes
Fixed broken functional test.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Added last transition time
Added documentation

Signed-off-by: Alexander Wels <awels@redhat.com>

* Switch to conditions slice from conditions pointer slice.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Add heartbeat time for conditions.
Renamed AnnRunningCondition to AnnLastTerminationMessage
Only update reason/message on heartbeat or state change.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Rename heartBeat to heartbeat
Re-factor datavolume-conditions to properly update heartbeat time.

Signed-off-by: Alexander Wels <awels@redhat.com>

* renamed AnnRunningConditionReason to AnnLastTerminationReason

Signed-off-by: Alexander Wels <awels@redhat.com>

* Revert lastTerminatedMessage/Reason rename
Added separate AnnScratchBoundCondition/Message/Reason for scratch space

Signed-off-by: Alexander Wels <awels@redhat.com>

* Update bound condition to take scratch or source PVC status into consideration.
Update running condition to take source pod status into consideration

Signed-off-by: Alexander Wels <awels@redhat.com>

* Addressed comments in review.

Signed-off-by: Alexander Wels <awels@redhat.com>

* Properly get scratch space pvc phase.

Signed-off-by: Alexander Wels <awels@redhat.com>
2020-05-12 23:39:23 +02:00
..
BUILD.bazel Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
clone-controller_test.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
clone-controller.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
config-controller_test.go Clean up client-go left overs after converting to runtime library. (#1163) 2020-04-02 22:59:54 +02:00
config-controller.go Clean up client-go left overs after converting to runtime library. (#1163) 2020-04-02 22:59:54 +02:00
controller_suite_test.go Use controller library for config controller (#1034) 2019-12-09 15:54:25 +01:00
datavolume-conditions_test.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
datavolume-conditions.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
datavolume-controller_test.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
datavolume-controller.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
import-controller_test.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
import-controller.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
runtime-util.go Clean up client-go left overs after converting to runtime library. (#1163) 2020-04-02 22:59:54 +02:00
smart-clone-controller_test.go Clean up client-go left overs after converting to runtime library. (#1163) 2020-04-02 22:59:54 +02:00
smart-clone-controller.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
upload-controller_test.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
upload-controller.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
util_test.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00
util.go Add conditions to DataVolume and add condition annotation to PVCs (#1194) 2020-05-12 23:39:23 +02:00