Commit Graph

25 Commits

Author SHA1 Message Date
Alexander Wels
bdb079f7bf
Make sure all CDI crds have structural schemas (#1171)
* Make sure all CDI crds have structural schemas

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

* Removed unneeded apiVersion, Kind, Metadata from validation

Signed-off-by: Alexander Wels <awels@redhat.com>
2020-04-15 21:54:02 +02:00
Adam Litke
84cf68d926
Add missing test ids (#1161)
Signed-off-by: Adam Litke <alitke@redhat.com>
2020-03-27 22:19:48 +01:00
Piotr Kliczewski
78cee6d166
Imageio - new import data source (#1042)
This PR introduces new import data source to fetch disks from ovirt
and store them in storage available in the cluster. It uses ovirt-sdk
to check whether the this is there, the size of the disk and it obtains
signed ticket which allows to get the disk using ovirt-imageio-proxy.

In order to use it a user needs to create configmap with ovirt api
certificate and secret with ovirt engine user and password. Both are
required and validated by webhook. In order to start import process
we need to post following definition:

---
apiVersion: cdi.kubevirt.io/v1alpha1
kind: DataVolume
metadata:
  name: "imageio-dv"
spec:
  source:
      imageio:
         url: "<engine-api-endpoint>"
         secretRef: "<secret-name-containing-engine-credentials>"
         certConfigMap: "<configmap-name-containing-engine-api-certificate>"
         diskId: "<disk-id-which-we-want-to-import>"
  pvc:
    accessModes:
      - ReadWriteOnce
    resources:
      requests:
        storage: "64Mi"
---

Signed-off-by: Piotr Kliczewski <piotr.kliczewski@gmail.com>
2020-03-19 19:49:44 +01:00
Michael Henriksen
99f8af5b86 k8s client upgrade to 1.16 (#1079)
* initial client upgrade to 1.16

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* fix Route detection in OpenShift

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-01-14 13:43:17 +01:00
Alexander Wels
f948406c54 Fix strings to check against in validation for k8s 1.16 (#1045)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-12-04 21:39:52 +01:00
Alexander Wels
e047b17c95 Update kubevirtci k8s version to 1.15.1
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-08-15 08:24:34 -04:00
Michael Henriksen
e4fa647eea Clone permission refactoring (#906)
* allow user with 'create pod' permission in source namespace to clone PVCs also refactored Kubevirt interface to clone permission check

* make sure DataVolume spec is immutable also don't check perms when clone source namespace = dest namespace
2019-08-05 11:04:03 -04:00
Alexander Wels
6f64e40180 Add test case id to tests.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-05-22 08:46:17 -04:00
Alexander Wels
540602af96
Merge branch 'master' into fix_scorecard_issues 2019-05-07 10:16:42 -04:00
Alexander Wels
630a23ef23 Fix a bunch of go score card issues.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-05-06 16:52:03 -04:00
Alexander Wels
35da1c189b DataVolume api validation
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-05-06 16:30:28 -04:00
Irit goihman
07a04b5635 add a better error message if pvc size is missing
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-04-15 13:47:53 +03:00
Irit goihman
5c799ed972 added pvc accessModes as a required field
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-04-01 14:57:01 +03:00
Alexander Wels
8667282fea
Merge branch 'master' into src-pvc-validation 2019-03-05 17:06:39 -05:00
Alexander Wels
1b3c07ffbe
Update api_validation_test.go 2019-03-05 13:49:27 -05:00
Kevin Alon Goldblatt
7b20bd3af6 API Validation - Added test attriutes to CNV-1759-1769 2019-03-03 17:50:56 +02:00
kgoldbla
be2221ced7
Update api_validation_test.go 2019-03-03 17:14:03 +02:00
kgoldbla
fc6f56b7b7
Update api_validation_test.go 2019-03-03 16:43:16 +02:00
Irit goihman
55e68502f9 add functional test for DataVolume validation using non existing source PVC
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-02-28 13:13:02 +02:00
Irit goihman
88ab1f526e DV with dest PVC already exists functional test
Signed-off-by: Irit goihman <igoihman@redhat.com>
2019-02-24 11:21:17 +02:00
Alexander Wels
feba93fa70 Add validation of content type and unit tests.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-01-24 14:52:22 -05:00
Nelly Credi
0c6e1ff6ae updated to [attr1][attr2][attr3] struct 2019-01-10 17:09:51 +02:00
Nelly Credi
0149a300c7 Add test attributes
Added rfe id, test id, criticality etc

Based on issue
https://github.com/kubevirt/containerized-data-importer/issues/359
2019-01-10 17:05:57 +02:00
Alexander Wels
8b27e695f0 Fix some functional test issues running locally.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-01-03 10:34:56 -05:00
Irit Goihman
d27e92a2a2 add API validation test
Signed-off-by: Irit Goihman <igoihman@redhat.com>
2018-12-18 14:33:45 +02:00