Skip to content

Commit 5b81fd8

Browse files
client-go update by KubeVirt Prow build
1 parent 148fa0d commit 5b81fd8

File tree

113 files changed

+15326
-48574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+15326
-48574
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Go clients for talking to [KubeVirt](https://github.com/kubevirt/kubevirt).
66
please refer to some of [examples here](examples/README.md)
77

88
-----
9-
KubeVirt client-go is maintained at https://github.com/kubevirt/kubevirt/tree/master/staging/src/kubevirt.io/client-go.
10-
The master branch of this repository is updated on every PR merge, release tags are pushed on every release of KubeVirt.
9+
KubeVirt client-go is maintained at https://github.com/kubevirt/kubevirt/tree/main/staging/src/kubevirt.io/client-go.
10+
The main branch of this repository is updated on every PR merge, release tags are pushed on every release of KubeVirt.
1111

1212
## License
1313

SECURITY.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manner to allow adequate time to respond. If a security issue or
99
vulnerability has been found, please disclose the details to our
1010
dedicated email address:
1111

12-
kubevirt-security@redhat.com [PGP](#PGP Encryption)
12+
cncf-kubevirt-security@lists.cncf.io [PGP](#PGP Encryption)
1313

1414
Please include as much information as possible with the report. The
1515
following details assist with analysis efforts:
@@ -40,10 +40,4 @@ mailing list and published to the
4040
page.
4141

4242
## Security Team
43-
The security team consists of key developers, vendor security contacts
44-
and project leadership.
45-
46-
Membership of the security team is assessed on a case-by-case basis. If
47-
you have cause to join the team, please sent an email to the email address
48-
above. Members will need to demonstrate secure information handling
49-
practices and procedures before joining.
43+
The security team currently consists of the Maintainers of Kubevirt.

api/OWNERS

-9
This file was deleted.

api/deepcopy_test.go

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
package api
2+
3+
import (
4+
"reflect"
5+
6+
fuzz "github.com/google/gofuzz"
7+
. "github.com/onsi/ginkgo"
8+
"github.com/onsi/ginkgo/extensions/table"
9+
. "github.com/onsi/gomega"
10+
11+
v1 "kubevirt.io/api/core/v1"
12+
)
13+
14+
var _ = Describe("Generated deepcopy functions", func() {
15+
16+
var structs []interface{}
17+
BeforeEach(func() {
18+
19+
structs = []interface{}{
20+
&v1.CloudInitNoCloudSource{},
21+
&v1.DomainSpec{},
22+
&v1.ResourceRequirements{},
23+
&v1.Firmware{},
24+
&v1.Devices{},
25+
&v1.Disk{},
26+
&v1.DiskDevice{},
27+
&v1.DiskTarget{},
28+
&v1.LunTarget{},
29+
&v1.FloppyTarget{},
30+
&v1.CDRomTarget{},
31+
&v1.Volume{},
32+
&v1.VolumeSource{},
33+
&v1.ContainerDiskSource{},
34+
&v1.ClockOffset{},
35+
&v1.ClockOffsetUTC{},
36+
&v1.Clock{},
37+
&v1.Timer{},
38+
&v1.RTCTimer{},
39+
&v1.HPETTimer{},
40+
&v1.PITTimer{},
41+
&v1.KVMTimer{},
42+
&v1.HypervTimer{},
43+
&v1.Features{},
44+
&v1.FeatureState{},
45+
&v1.FeatureAPIC{},
46+
&v1.FeatureSpinlocks{},
47+
&v1.FeatureVendorID{},
48+
&v1.FeatureHyperv{},
49+
&v1.CPU{},
50+
&v1.Watchdog{},
51+
&v1.WatchdogDevice{},
52+
&v1.I6300ESBWatchdog{},
53+
&v1.VirtualMachineInstance{},
54+
&v1.VirtualMachineInstanceList{},
55+
&v1.VirtualMachineInstanceSpec{},
56+
&v1.VirtualMachineInstanceStatus{},
57+
&v1.VirtualMachineInstanceCondition{},
58+
&v1.VMISelector{},
59+
&v1.VirtualMachineInstanceReplicaSet{},
60+
&v1.VirtualMachineInstanceReplicaSetList{},
61+
&v1.VirtualMachineInstanceReplicaSetSpec{},
62+
&v1.VirtualMachineInstanceReplicaSetStatus{},
63+
&v1.VirtualMachineInstanceReplicaSetCondition{},
64+
&v1.VirtualMachineInstanceTemplateSpec{},
65+
&v1.VirtualMachine{},
66+
&v1.VirtualMachineList{},
67+
&v1.VirtualMachineSpec{},
68+
&v1.VirtualMachineCondition{},
69+
&v1.VirtualMachineStatus{},
70+
&v1.VirtualMachineInstancePreset{},
71+
&v1.VirtualMachineInstancePresetList{},
72+
&v1.VirtualMachineInstancePresetSpec{},
73+
&v1.Probe{},
74+
&v1.Handler{},
75+
&v1.Hugepages{},
76+
&v1.Interface{},
77+
&v1.Memory{},
78+
&v1.Machine{},
79+
&v1.InterfaceBridge{},
80+
&v1.InterfaceSlirp{},
81+
}
82+
})
83+
84+
table.DescribeTable("should work for fuzzed structs with a probability for nils of", func(nilProbability float64) {
85+
for _, s := range structs {
86+
fuzz.New().NilChance(nilProbability).Fuzz(s)
87+
Expect(reflect.ValueOf(s).MethodByName("DeepCopy").Call(nil)[0].Interface()).To(Equal(s))
88+
if reflect.ValueOf(s).MethodByName("DeepCopyObject").IsValid() {
89+
Expect(reflect.ValueOf(s).MethodByName("DeepCopyObject").Call(nil)[0].Interface()).To(Equal(s))
90+
}
91+
new := reflect.New(reflect.TypeOf(s).Elem())
92+
reflect.ValueOf(s).MethodByName("DeepCopyInto").Call([]reflect.Value{new})
93+
Expect(new.Interface()).To(Equal(s))
94+
}
95+
},
96+
table.Entry("0%", float64(0)),
97+
table.Entry("10%", float64(0.1)),
98+
table.Entry("50%", float64(0.5)),
99+
table.Entry("70%", float64(0.7)),
100+
table.Entry("100%", float64(1)),
101+
)
102+
})

0 commit comments

Comments
 (0)