kubernetes-sigs/cluster-api

Conversion errors in unit test logs

開放

#8,605 建立於 2023年5月4日

 (4 則留言) (1 個反應) (0 位負責人)Go (1,532 個分叉)auto 404
help wantedkind/bugpriority/backlogtriage/accepted

倉庫指標

星標
 (4,267 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

What steps did you take and what happened?

There are a lot of errors in the logs of our conversion unit tests (xref: https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api/8007/pull-cluster-api-test-mink8s-main/1654053928607682560/build-log.txt)

{"Time":"2023-05-04T09:26:31.736455585Z","Action":"output","Package":"sigs.k8s.io/cluster-api/exp/addons/api/v1alpha3","Test":"TestClusterResourceSetConversion","Output":"=== RUN TestClusterResourceSetConversion\n"} {"Time":"2023-05-04T09:26:31.832727542Z","Action":"output","Package":"sigs.k8s.io/cluster-api/exp/addons/api/v1alpha3","Test":"TestClusterResourceSetConversion","Output":"E0504 09:26:31.831850 19242 conversion.go:74] conversion-webhook "msg"="failed to convert" "error"="no kind \"ClusterResourceSet\" is registered for version \"addons.cluster.x-k8s.io/v1alpha4\" in scheme \"pkg/runtime/scheme.go:100\"" "request"="504bb6d6-33de-4392-85f8-5eff3be8c09d"\n"}

Note: I'm talking about unit tests like TestClusterResourceSetConversion not the fuzz tests.

Basically we run v1alpha3 conversion tests and the error is that v1alpha4 is not registered. I don't really understand why there should be a conversion to v1alpha4. But this also doesn't fail the tests.

Would be interesting to figure out what's going on.

What did you expect to happen?

No errors in the logs of our conversion unit tests

Cluster API version

main

Kubernetes version

No response

Anything else you would like to add?

No response

Label(s) to be applied

/kind bug One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.

貢獻者指南