mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Merge pull request #47650 from jianzhangbjz/enable-logging-conversions
Automatic merge from submit-queue
fixed the logging of which conversions.
Hi Guys,
After enable the function of logging of which conversions at [TestSpecificKind](d31a7cb301/pkg/api/serialization_test.go (L140)
), I got the below errors:
```
pkg/api/serialization_test.go:140: cannot refer to unexported name api.scheme
pkg/api/serialization_test.go:140: undefined: api.scheme in api.scheme.Log
ok k8s.io/kubernetes/cmd/genutils 0.066s
```
So, this PR will fix that.
This commit is contained in:
@@ -139,7 +139,7 @@ func TestSetControllerConversion(t *testing.T) {
|
|||||||
// debug issues that arise while adding a new API type.
|
// debug issues that arise while adding a new API type.
|
||||||
func TestSpecificKind(t *testing.T) {
|
func TestSpecificKind(t *testing.T) {
|
||||||
// Uncomment the following line to enable logging of which conversions
|
// Uncomment the following line to enable logging of which conversions
|
||||||
// api.scheme.Log(t)
|
// api.Scheme.Log(t)
|
||||||
internalGVK := schema.GroupVersionKind{Group: "extensions", Version: runtime.APIVersionInternal, Kind: "DaemonSet"}
|
internalGVK := schema.GroupVersionKind{Group: "extensions", Version: runtime.APIVersionInternal, Kind: "DaemonSet"}
|
||||||
|
|
||||||
seed := rand.Int63()
|
seed := rand.Int63()
|
||||||
|
Reference in New Issue
Block a user