@@ -18,7 +18,6 @@ package testing
18
18
19
19
import (
20
20
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21
- "k8s.io/apimachinery/pkg/runtime/schema"
22
21
)
23
22
24
23
type Simple struct {
@@ -30,8 +29,6 @@ type Simple struct {
30
29
Labels map [string ]string `json:"labels,omitempty"`
31
30
}
32
31
33
- func (obj * Simple ) GetObjectKind () schema.ObjectKind { return & obj .TypeMeta }
34
-
35
32
type SimpleRoot struct {
36
33
metav1.TypeMeta `json:",inline"`
37
34
metav1.ObjectMeta `json:"metadata"`
@@ -41,8 +38,6 @@ type SimpleRoot struct {
41
38
Labels map [string ]string `json:"labels,omitempty"`
42
39
}
43
40
44
- func (obj * SimpleRoot ) GetObjectKind () schema.ObjectKind { return & obj .TypeMeta }
45
-
46
41
type SimpleGetOptions struct {
47
42
metav1.TypeMeta `json:",inline"`
48
43
Param1 string `json:"param1"`
@@ -57,17 +52,13 @@ func (SimpleGetOptions) SwaggerDoc() map[string]string {
57
52
}
58
53
}
59
54
60
- func (obj * SimpleGetOptions ) GetObjectKind () schema.ObjectKind { return & obj .TypeMeta }
61
-
62
55
type SimpleList struct {
63
56
metav1.TypeMeta `json:",inline"`
64
57
metav1.ListMeta `json:"metadata,inline"`
65
58
// +optional
66
59
Items []Simple `json:"items,omitempty"`
67
60
}
68
61
69
- func (obj * SimpleList ) GetObjectKind () schema.ObjectKind { return & obj .TypeMeta }
70
-
71
62
// SimpleXGSubresource is a cross group subresource, i.e. the subresource does not belong to the
72
63
// same group as its parent resource.
73
64
type SimpleXGSubresource struct {
@@ -76,5 +67,3 @@ type SimpleXGSubresource struct {
76
67
SubresourceInfo string `json:"subresourceInfo,omitempty"`
77
68
Labels map [string ]string `json:"labels,omitempty"`
78
69
}
79
-
80
- func (obj * SimpleXGSubresource ) GetObjectKind () schema.ObjectKind { return & obj .TypeMeta }
0 commit comments