|
Ran
|
Jobs
1
|
Files
155
|
Run time
1min
|
Badge
README BADGES
|
push
travis-ci
Fix cdi-deployment Deployment selector (#3692) The cdi-deployment selector has a matchLabels value of {"app": "containerized-data-importer"} which is a common label that appears on many CDI related Pods (e.g., cdi-apiserver, cdi-uploadproxy, importer, etc.). This causes certain functionalities such as the log subresource to misbehave as it targets the first Pod of the Pod list according to the kubectl ByLogging sorting conditions[1]. This commit changes the cdi-deployment selector to the common "cdi.kubevirt.io" with the value "cdi-deployment". Since deployment selectors are immutable[2], it also adds a reconcile callback to delete the cdi-deployment Deployment in the event of detecting a selector that differs from the operator's desired one. [1] https://github.com/kubernetes/kubectl/blob/fec9d5b3d/pkg/util/podutils/podutils.go#L96 [2] https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#selector Signed-off-by: Adi Aloni <aaloni@redhat.com>
23 of 33 new or added lines in 2 files covered. (69.7%)
2 existing lines in 1 file now uncovered.16830 of 28442 relevant lines covered (59.17%)
0.65 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 10 |
52.48 |
1.64% | pkg/operator/controller/callbacks.go |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 2 |
61.37 |
-0.26% | pkg/importer/vddk-datasource_amd64.go |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | #5262.1 | 155 |
59.17 |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|