@@ -118,66 +118,42 @@ func Resource(resource string) schema.GroupResource {
118
118
// +genclient
119
119
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
120
120
121
- type Cluster struct {
121
+ type MachineDeployment struct {
122
122
metav1.TypeMeta
123
123
metav1.ObjectMeta
124
- Spec ClusterSpec
125
- Status ClusterStatus
124
+ Spec MachineDeploymentSpec
125
+ Status MachineDeploymentStatus
126
126
}
127
127
128
128
// +genclient
129
129
// +genclient
130
130
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
131
131
132
- type MachineSet struct {
132
+ type Machine struct {
133
133
metav1.TypeMeta
134
134
metav1.ObjectMeta
135
- Spec MachineSetSpec
136
- Status MachineSetStatus
137
- }
138
-
139
- type ClusterStatus struct {
140
- APIEndpoints []APIEndpoint
141
- ErrorReason clustercommon.ClusterStatusError
142
- ErrorMessage string
143
- ProviderStatus * pkgruntime.RawExtension
144
- }
145
-
146
- type MachineSetStatus struct {
147
- Replicas int32
148
- FullyLabeledReplicas int32
149
- ReadyReplicas int32
150
- AvailableReplicas int32
151
- ObservedGeneration int64
152
- ErrorReason * clustercommon.MachineSetStatusError
153
- ErrorMessage * string
154
- }
155
-
156
- type APIEndpoint struct {
157
- Host string
158
- Port int
159
- }
160
-
161
- type MachineSetSpec struct {
162
- Replicas * int32
163
- MinReadySeconds int32
164
- Selector metav1.LabelSelector
165
- Template MachineTemplateSpec
166
- }
167
-
168
- type ClusterSpec struct {
169
- ClusterNetwork ClusterNetworkingConfig
170
- ProviderConfig ProviderConfig
135
+ Spec MachineSpec
136
+ Status MachineStatus
171
137
}
172
138
173
- type MachineTemplateSpec struct {
174
- metav1.ObjectMeta
175
- Spec MachineSpec
139
+ type MachineDeploymentStatus struct {
140
+ ObservedGeneration int64
141
+ Replicas int32
142
+ UpdatedReplicas int32
143
+ ReadyReplicas int32
144
+ AvailableReplicas int32
145
+ UnavailableReplicas int32
176
146
}
177
147
178
- type ProviderConfig struct {
179
- Value * pkgruntime.RawExtension
180
- ValueFrom * ProviderConfigSource
148
+ type MachineStatus struct {
149
+ NodeRef * corev1.ObjectReference
150
+ LastUpdated metav1.Time
151
+ Versions * MachineVersionInfo
152
+ ErrorReason * clustercommon.MachineStatusError
153
+ ErrorMessage * string
154
+ ProviderStatus * pkgruntime.RawExtension
155
+ Addresses []corev1.NodeAddress
156
+ Conditions []corev1.NodeCondition
181
157
}
182
158
183
159
type MachineSpec struct {
@@ -188,42 +164,14 @@ type MachineSpec struct {
188
164
ConfigSource * corev1.NodeConfigSource
189
165
}
190
166
191
- type ProviderConfigSource struct {
192
- }
193
-
194
167
type MachineVersionInfo struct {
195
168
Kubelet string
196
169
ControlPlane string
197
170
}
198
171
199
- type ClusterNetworkingConfig struct {
200
- Services NetworkRanges
201
- Pods NetworkRanges
202
- ServiceDomain string
203
- }
204
-
205
- // +genclient
206
- // +genclient
207
- // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
208
-
209
- type MachineDeployment struct {
210
- metav1.TypeMeta
211
- metav1.ObjectMeta
212
- Spec MachineDeploymentSpec
213
- Status MachineDeploymentStatus
214
- }
215
-
216
- type NetworkRanges struct {
217
- CIDRBlocks []string
218
- }
219
-
220
- type MachineDeploymentStatus struct {
221
- ObservedGeneration int64
222
- Replicas int32
223
- UpdatedReplicas int32
224
- ReadyReplicas int32
225
- AvailableReplicas int32
226
- UnavailableReplicas int32
172
+ type ProviderConfig struct {
173
+ Value * pkgruntime.RawExtension
174
+ ValueFrom * ProviderConfigSource
227
175
}
228
176
229
177
type MachineDeploymentSpec struct {
@@ -237,11 +185,19 @@ type MachineDeploymentSpec struct {
237
185
ProgressDeadlineSeconds * int32
238
186
}
239
187
188
+ type ProviderConfigSource struct {
189
+ }
190
+
240
191
type MachineDeploymentStrategy struct {
241
192
Type clustercommon.MachineDeploymentStrategyType
242
193
RollingUpdate * MachineRollingUpdateDeployment
243
194
}
244
195
196
+ type MachineTemplateSpec struct {
197
+ metav1.ObjectMeta
198
+ Spec MachineSpec
199
+ }
200
+
245
201
type MachineRollingUpdateDeployment struct {
246
202
MaxUnavailable * utilintstr.IntOrString
247
203
MaxSurge * utilintstr.IntOrString
@@ -251,21 +207,66 @@ type MachineRollingUpdateDeployment struct {
251
207
// +genclient
252
208
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
253
209
254
- type Machine struct {
210
+ type Cluster struct {
255
211
metav1.TypeMeta
256
212
metav1.ObjectMeta
257
- Spec MachineSpec
258
- Status MachineStatus
213
+ Spec ClusterSpec
214
+ Status ClusterStatus
259
215
}
260
216
261
- type MachineStatus struct {
262
- NodeRef * corev1.ObjectReference
263
- LastUpdated metav1.Time
264
- Versions * MachineVersionInfo
265
- ErrorReason * clustercommon.MachineStatusError
266
- ErrorMessage * string
217
+ // +genclient
218
+ // +genclient
219
+ // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
220
+
221
+ type MachineSet struct {
222
+ metav1.TypeMeta
223
+ metav1.ObjectMeta
224
+ Spec MachineSetSpec
225
+ Status MachineSetStatus
226
+ }
227
+
228
+ type ClusterStatus struct {
229
+ APIEndpoints []APIEndpoint
230
+ ErrorReason clustercommon.ClusterStatusError
231
+ ErrorMessage string
267
232
ProviderStatus * pkgruntime.RawExtension
268
- Addresses []corev1.NodeAddress
233
+ }
234
+
235
+ type MachineSetStatus struct {
236
+ Replicas int32
237
+ FullyLabeledReplicas int32
238
+ ReadyReplicas int32
239
+ AvailableReplicas int32
240
+ ObservedGeneration int64
241
+ ErrorReason * clustercommon.MachineSetStatusError
242
+ ErrorMessage * string
243
+ }
244
+
245
+ type APIEndpoint struct {
246
+ Host string
247
+ Port int
248
+ }
249
+
250
+ type MachineSetSpec struct {
251
+ Replicas * int32
252
+ MinReadySeconds int32
253
+ Selector metav1.LabelSelector
254
+ Template MachineTemplateSpec
255
+ }
256
+
257
+ type ClusterSpec struct {
258
+ ClusterNetwork ClusterNetworkingConfig
259
+ ProviderConfig ProviderConfig
260
+ }
261
+
262
+ type ClusterNetworkingConfig struct {
263
+ Services NetworkRanges
264
+ Pods NetworkRanges
265
+ ServiceDomain string
266
+ }
267
+
268
+ type NetworkRanges struct {
269
+ CIDRBlocks []string
269
270
}
270
271
271
272
//
0 commit comments