Make the nogo check pass
```
pkg/virt-config/config_test.go:302:86: func passes lock by value:
kubevirt.io/kubevirt/pkg/handler-launcher-com/cmd/v1.SMBios contains
google.golang.org/protobuf/internal/impl.MessageState contains sync.Mutex
```
@@ -299,7 +299,7 @@ var _ = Describe("ConfigMap", func() {
Expect(clusterConfig.GetMachineType()).To(testutils.SatisfyAnyRegexp(clusterConfig.GetEmulatedMachines()))
})
- table.DescribeTable("SMBIOS values from kubevirt-config", func(value string, result cmdv1.SMBios) {
+ table.DescribeTable("SMBIOS values from kubevirt-config", func(value string, result *cmdv1.SMBios) {
clusterConfig, _, _, _ := testutils.NewFakeClusterConfig(&kubev1.ConfigMap{
Data: map[string]string{virtconfig.SmbiosConfigKey: value},
})
@@ -313,8 +313,8 @@ var _ = Describe("ConfigMap", func() {
Expect(string(smbiosJson)).To(BeEquivalentTo(string(resultJson)))
},
- table.Entry("when values set, should equal to result", `{"Family":"test","Product":"test", "Manufacturer":"None"}`, cmdv1.SMBios{Family: "test", Product: "test", Manufacturer: "None"}),
- table.Entry("When an invalid smbios value is set, should return default values", `{"invalid":"invalid"}`, cmdv1.SMBios{Family: "KubeVirt", Product: "None", Manufacturer: "KubeVirt"}),
+ table.Entry("when values set, should equal to result", `{"Family":"test","Product":"test", "Manufacturer":"None"}`, &cmdv1.SMBios{Family: "test", Product: "test", Manufacturer: "None"}),
+ table.Entry("When an invalid smbios value is set, should return default values", `{"invalid":"invalid"}`, &cmdv1.SMBios{Family: "KubeVirt", Product: "None", Manufacturer: "KubeVirt"}),
)
table.DescribeTable(" when SELinuxLauncherType", func(value string, result string) {
