Skip to content

Commit 31e93ce

Browse files
1996wentaozhangwtaozzhang
and
wtaozzhang
authored
feat: cluster add ClusterLevel field (#2321)
Co-authored-by: wtaozzhang <[email protected]>
1 parent 3adc0f4 commit 31e93ce

9 files changed

+514
-358
lines changed

Diff for: api/openapi/zz_generated.openapi.go

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: api/platform/types.go

+6
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ type ClusterSpec struct {
220220
// AppVersion is the overall version of system components
221221
// +optional
222222
AppVersion string
223+
// ClusterLevel is the expect level of cluster
224+
// +optional
225+
ClusterLevel *string
223226
}
224227

225228
// ClusterStatus represents information about the status of a cluster.
@@ -277,6 +280,9 @@ type ClusterStatus struct {
277280
// ComponentPhase is the status of components, contains "deployed", "pending-upgrade", "failed" status
278281
// +optional
279282
ComponentPhase ComponentPhase
283+
// ClusterLevel is the real level of cluster
284+
// +optional
285+
ClusterLevel *string
280286
}
281287

282288
// FinalizerName is the name identifying a finalizer during cluster lifecycle.

Diff for: api/platform/v1/generated.pb.go

+454-358
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: api/platform/v1/generated.proto

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: api/platform/v1/types.go

+6
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ type ClusterSpec struct {
231231
// AppVersion is the overall version of system components
232232
// +optional
233233
AppVersion string `json:"appVersion,omitempty" protobuf:"bytes,27,opt,name=appVersion"`
234+
// ClusterLevel is the expect level of cluster
235+
// +optional
236+
ClusterLevel *string `json:"clusterLevel,omitempty" protobuf:"bytes,28,opt,name=clusterLevel"`
234237
}
235238

236239
// ClusterStatus represents information about the status of a cluster.
@@ -288,6 +291,9 @@ type ClusterStatus struct {
288291
// ComponentPhase is the status of components, contains "deployed", "pending-upgrade", "failed" status
289292
// +optional
290293
ComponentPhase ComponentPhase `json:"componentPhase,omitempty" protobuf:"bytes,22,opt,name=componentPhase"`
294+
// ClusterLevel is the real level of cluster
295+
// +optional
296+
ClusterLevel *string `json:"clusterLevel,omitempty" protobuf:"bytes,23,opt,name=clusterLevel"`
291297
}
292298

293299
// FinalizerName is the name identifying a finalizer during cluster lifecycle.

Diff for: api/platform/v1/types_swagger_doc_generated.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: api/platform/v1/zz_generated.conversion.go

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: api/platform/v1/zz_generated.deepcopy.go

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: api/platform/zz_generated.deepcopy.go

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)