Closed vie-serendipity closed 3 months ago
Attention: Patch coverage is 58.11966%
with 98 lines
in your changes are missing coverage. Please review.
Project coverage is 54.71%. Comparing base (
3194f0b
) to head (29920a4
). Report is 2 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
/rerun
@vie-serendipity Thanks for posting pull request. A lot of files from kubernetes are imported, how about import k8s.io/kubernetes
directly? it seems that we can avoid importing k8s.io/kubernetes
directly.
/rerun
Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255
It seems codecov encounter some problems. @rambohe-ch
@vie-serendipity please fix the following unit test error:
=== RUN TestDefault/nodepool_has_pool_type nodepool_default_test.go:111: expect &v1beta1.NodePool{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"foo", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletionTimestamp:
, DeletionGracePeriodSeconds:(int64)(nil), Labels:map[string]string{"nodepool.openyurt.io/type":"Cloud"}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:v1beta1.NodePoolSpec{Type:"Cloud", HostNetwork:true, Labels:map[string]string(nil), Annotations:map[string]string(nil), Taints:[]v1.Taint(nil)}, Status:v1beta1.NodePoolStatus{ReadyNodeNum:0, UnreadyNodeNum:0, Nodes:[]string{}}}, got &v1beta1.NodePool{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"foo", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletionTimestamp: , DeletionGracePeriodSeconds:( int64)(nil), Labels:map[string]string{"nodepool.openyurt.io/type":"cloud"}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:v1beta1.NodePoolSpec{Type:"Cloud", HostNetwork:true, Labels:map[string]string(nil), Annotations:map[string]string(nil), Taints:[]v1.Taint(nil)}, Status:v1beta1.NodePoolStatus{ReadyNodeNum:0, UnreadyNodeNum:0, Nodes:[]string{}}} --- FAIL: TestDefault (0.00s) --- PASS: TestDefault/it_is_not_a_nodepool (0.00s) --- FAIL: TestDefault/nodepool_has_no_type (0.00s) --- FAIL: TestDefault/nodepool_has_pool_type (0.00s)
Issues
5 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
/lgtm
Fixes #1970
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
1966
1969
1970
Special notes for your reviewer:
Does this PR introduce a user-facing change?
other Note