-
Notifications
You must be signed in to change notification settings - Fork 10
/
types.go
144 lines (117 loc) · 3.93 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// Code generated by skv2. DO NOT EDIT.
// Definitions for the Kubernetes types
package v1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
)
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
// Settings is the Schema for the settings API
type Settings struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SettingsSpec `json:"spec,omitempty"`
Status SettingsStatus `json:"status,omitempty"`
}
// GVK returns the GroupVersionKind associated with the resource type.
func (Settings) GVK() schema.GroupVersionKind {
return schema.GroupVersionKind{
Group: "gloo.solo.io",
Version: "v1",
Kind: "Settings",
}
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// SettingsList contains a list of Settings
type SettingsList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Settings `json:"items"`
}
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
// Upstream is the Schema for the upstream API
type Upstream struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UpstreamSpec `json:"spec,omitempty"`
Status UpstreamStatus `json:"status,omitempty"`
}
// GVK returns the GroupVersionKind associated with the resource type.
func (Upstream) GVK() schema.GroupVersionKind {
return schema.GroupVersionKind{
Group: "gloo.solo.io",
Version: "v1",
Kind: "Upstream",
}
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// UpstreamList contains a list of Upstream
type UpstreamList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Upstream `json:"items"`
}
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
// UpstreamGroup is the Schema for the upstreamGroup API
type UpstreamGroup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UpstreamGroupSpec `json:"spec,omitempty"`
Status UpstreamGroupStatus `json:"status,omitempty"`
}
// GVK returns the GroupVersionKind associated with the resource type.
func (UpstreamGroup) GVK() schema.GroupVersionKind {
return schema.GroupVersionKind{
Group: "gloo.solo.io",
Version: "v1",
Kind: "UpstreamGroup",
}
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// UpstreamGroupList contains a list of UpstreamGroup
type UpstreamGroupList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []UpstreamGroup `json:"items"`
}
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
// Proxy is the Schema for the proxy API
type Proxy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProxySpec `json:"spec,omitempty"`
Status ProxyStatus `json:"status,omitempty"`
}
// GVK returns the GroupVersionKind associated with the resource type.
func (Proxy) GVK() schema.GroupVersionKind {
return schema.GroupVersionKind{
Group: "gloo.solo.io",
Version: "v1",
Kind: "Proxy",
}
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ProxyList contains a list of Proxy
type ProxyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Proxy `json:"items"`
}
func init() {
SchemeBuilder.Register(&Settings{}, &SettingsList{})
SchemeBuilder.Register(&Upstream{}, &UpstreamList{})
SchemeBuilder.Register(&UpstreamGroup{}, &UpstreamGroupList{})
SchemeBuilder.Register(&Proxy{}, &ProxyList{})
}