Commit Graph

25 Commits

Author SHA1 Message Date
Daniel Erez
5b3109a324 smart-clone
Changes and flow:

* datavolume-controller:
- When clone pvc is requested and smart-clone is applicable -> Create a new VolumeSnapshot.

* Introduced smart-clone-controller:
- Listens to VolumeSnapshot changes and create a new PVC based on the snapshot.
- Upon PVC successful creation, deletes the snapshot for cleaning up.

Change-Id: I369fc92e72edb8a2cf584c8cb916795415f9d6e0
Signed-off-by: Daniel Erez <derez@redhat.com>
Co-authored-by: Fred Rolland <frolland@redhat.com>
2019-05-20 11:04:10 +03:00
Alexander Wels
6270b80b31 Update Datavolume status to include progress
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-04-02 11:34:00 -04:00
Michael Henriksen
c17eb7a183 dump logs when functional tests fail 2019-03-26 20:13:49 -04:00
u5surf
6a2a36e1fd add copies the flags after flags parse 2019-03-07 23:20:34 +09:00
Y.Horie
d61835b74a
Merge branch 'master' into issue-687 2019-03-06 06:47:20 +09:00
Y.Horie
c9104059fb move to klog from glog 2019-03-05 13:33:20 +09:00
Alexander Wels
0a32c5be1c Test prometheus endpoint existance.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-02-28 11:42:13 -05:00
Michael Henriksen
5e2ed1b97b initial oerator implementation 2019-01-16 20:22:14 -05:00
Alexander Wels
995ebf39e7 Increase e2e test timeouts.
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-11-02 11:31:45 -04:00
Alexander Wels
40072b631a Report cloning progress in logs and prometheus.
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-11-01 11:09:03 -04:00
j-griffith
0a84e2fa8c Add lint checks to remaining go src directories
This finishes up the last of the golint implementation, with the
addition of the cmd, tests and tools directories we are now running
golint tests on all of the current go source files in the project.

This change adds all the little fixes (mostly just commenting and
naming) and also enables the new diretories in the lint test that we
gate on.
2018-09-29 08:35:21 -06:00
Alexander Wels
2c327088cc Clean up some code and spelling issues.
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-09-27 14:09:07 -04:00
Michael Henriksen
be89439734 functional test 2018-09-19 12:30:46 -04:00
John Griffith
c455577cca Fix lint errors on common package (#449)
This change just updates the common package to pass golint.  Of course
that has some reaching implications into other packages with renaming of
constants.

I've intentionally kept this patch set to the bare minimum for the lint
test, I do think that we should put some effort into our use of
constants (especially those in common.go) in the future.

Ideally we'd declare constants where they're used, and we wouldn't
export them if they don't need to be.  There are some in here that
are only used in one or two packages, and that can be cleaned up pretty
easily however it's likely that there might be plans to use them
elsewhere in the future.
2018-09-10 09:14:09 -04:00
Alexander Wels
8dca41a3e4 Return error if creating of clients fails in framework (#405)
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-09-05 09:14:27 -07:00
Alexander Wels
70db9fdf37 Fix find pod by prefix (#402)
- Implemented missing LabelSelector code.
- Fixed bug where err was not nil in inner function.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-09-05 00:04:39 -07:00
jeff vance
7ebc217d8e don't show test flags every time NewFramework invoked 2018-08-31 17:52:03 -07:00
Jeff Vance
a450005167 NewFrameworkOrDie (#399)
* add NewFrameworkOrDie

* Config{} defaults

* review comments

* init fmt fix
2018-08-31 16:11:14 -05:00
Alexander Wels
0e2731dc8e
Client creation in NewFramework (#401)
- Moved client creation into NewFramework instead of BeforeEach
  block.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-31 10:53:57 -04:00
Alexander Wels
01cfa85dd1 Configure STDCI
- Added oVirt STDCI configuration files.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-30 15:50:36 -04:00
Alexander Wels
ac638c8107 Add cloner e2e tests (#372)
- Positive test clone from namespace into same namespace.
- Positive test clone from namespace into other namespace.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-28 14:12:07 -07:00
Alexander Wels
d7cb81a801 Change embedded Config from ptr to regular embed (#373)
Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-24 13:54:01 -07:00
Alexander Wels
c5f4615494 Add skip namespace creation flag.
- Not all tests require a namespace to run, add the ability
  to skip creating the generated namespace.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-23 13:53:56 -04:00
Alexander Wels
ea15dd41f5 Add regular PVC creation e2e test.
- Added e2e test to see if regular PVC doesn't get populated.
- Added PVC utilities, for both framework and stand alone
- Added exec utility functions to execute commands against running
  Pods.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-22 14:10:49 -04:00
Jeff Vance
4519a615e9 create common framework object (#349)
* 1st pass at framework object

* add debug

* review comments, flag defaults

* minor log cleanup

* clear ns slice

* installed-ns -> cdi-namespace
2018-08-17 17:07:15 -05:00