|
Ran
|
Jobs
1
|
Files
159
|
Run time
1min
|
Badge
README BADGES
|
push
travis-ci
feat(tls): allow controlling which key exchange groups CDI's TLS servers accept (#4332) * fix(tls): avoid possible panic in CDIConfig delete handler OnDelete does not always receive the typed object. When the watch is closed and the delete event is missed, the informer delivers a cache.DeletedFinalStateUnknown instead [0], so the unchecked obj.(*cdiv1.CDIConfig) assertion could panic. The handler only logs, and the informer is field-selected to the single "config" object, so drop the assertion and the name from the message. While here, replace interface{} with any in the event handlers. [0] https://github.com/kubevirt/containerized-data-importer/blob/<a class=hub.com/kubevirt/containerized-data-importer/commit/b2bd873d7705d38b6774d104860ee86144467ed0">b2bd873d7/vendor/k8s.io/client-go/tools/cache/controller.go#L220-L224 Signed-off-by: Aviv Neta <avneta@redhat.com> * fix(apiserver): avoid possible panic in AuthConfig delete handler OnDelete does not always receive the typed object. When the watch is closed and the delete event is missed, the informer delivers a cache.DeletedFinalStateUnknown instead [0], so the unchecked obj.(*corev1.ConfigMap) assertion could panic. The handler only logs, and the informer is field-selected to the single "extension-apiserver-authentication" ConfigMap, so drop the assertion and the name from the message. While here, replace interface{} with any in the event handlers and use slices.Contains in ValidateName. [0] https://github.com/kubevirt/containerized-data-importer/blob/b2bd873d7705d38b6774d104860ee86144467ed0/vendor/k8s.io/client-go/tools/cache/controller.go#L220-L224 Signed-off-by: Aviv Neta <avneta@redhat.com> * fix(tls): fall back to Intermediate for unknown TLS profile types SelectCipherSuitesAndMinTLSVersion indexed cdiv1.TLSProfiles by profile.Type without checking the result. If the type was missing from the map (empty, or Custom without a custom spec), it dereferenced a nil *TLSProfileSpec and panicked (for more info check the unit tests in the last commit where it wa... (continued)
49 of 77 new or added lines in 9 files covered. (63.64%)
2 existing lines in 2 files now uncovered.15588 of 30956 relevant lines covered (50.36%)
0.56 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 13 |
18.07
|
18.07% | pkg/util/tls-crypto-watch/tls-crypto-watch.go |
| 7 |
0.0
|
0.0% | cmd/cdi-uploadserver/uploadserver.go |
| 4 |
42.39
|
-0.18% | pkg/uploadproxy/uploadproxy.go |
| 2 |
86.36
|
0.81% | pkg/apiserver/auth-config.go |
| 1 |
0.0
|
0.0% | cmd/cdi-controller/controller.go |
| 1 |
0.0
|
0.0% | cmd/cdi-operator/operator.go |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
86.36
|
0.81% | pkg/apiserver/auth-config.go |
| 1 |
18.07
|
18.07% | pkg/util/tls-crypto-watch/tls-crypto-watch.go |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | #6349.1 | 159 |
50.36
|
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|