containerized-data-importer/pkg/controller
Bartosz Rybacki ab8b9c025e
Generating label names (#1200)
* Handle labels length correctly

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Handle service name generation correctly

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Remove not needed labels

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Store import pod name in annotation

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Enable long DV name

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Handle name with dot when creating service/label name

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Test long names on import,  upload and clone

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Store upload pod name in annotation

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Store importer scratch pvc name in annotation

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Quick fix for tests (need improvements)

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Cleanup handling scratch name

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Ensure pod/service name conflicts are handled

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Handle client errors when trying to get the import pod

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Style improvements, and other code review fixes.

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Store clone source pod name in an annotation

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Correct name initialization and tests

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Do not init name if pod already exists. It is not needed.

The situation of having a pod but not name on annotation can happen after the upgrade, when we have a legacy pvc and pod already existing, but clone operation not finished. But when we already have the pod, then in the code (currently) we do not need the name from annotation.

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Cleanup scratch name handling

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Use constant for max dv name in validation

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>

* Simplify clone source pod name initialization

Signed-off-by: Bartosz Rybacki <brybacki@redhat.com>
2020-05-29 19:55:32 +02:00
..
BUILD.bazel Generating label names (#1200) 2020-05-29 19:55:32 +02:00
clone-controller_test.go Generating label names (#1200) 2020-05-29 19:55:32 +02:00
clone-controller.go Generating label names (#1200) 2020-05-29 19:55:32 +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 Emit events on PVC pending/bound and on failures. (#1204) 2020-05-19 00:43:27 +02:00
datavolume-conditions.go Emit events on PVC pending/bound and on failures. (#1204) 2020-05-19 00:43:27 +02:00
datavolume-controller_test.go alpha to beta snapshot API (#1206) 2020-05-20 15:25:28 +02:00
datavolume-controller.go Generating label names (#1200) 2020-05-29 19:55:32 +02:00
import-controller_test.go Generating label names (#1200) 2020-05-29 19:55:32 +02:00
import-controller.go Generating label names (#1200) 2020-05-29 19:55:32 +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 alpha to beta snapshot API (#1206) 2020-05-20 15:25:28 +02:00
smart-clone-controller.go alpha to beta snapshot API (#1206) 2020-05-20 15:25:28 +02:00
upload-controller_test.go Generating label names (#1200) 2020-05-29 19:55:32 +02:00
upload-controller.go Generating label names (#1200) 2020-05-29 19:55:32 +02:00
util_test.go alpha to beta snapshot API (#1206) 2020-05-20 15:25:28 +02:00
util.go Generating label names (#1200) 2020-05-29 19:55:32 +02:00