Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cluster add ClusterLevel field #2321

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions api/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions api/platform/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ type ClusterSpec struct {
// AppVersion is the overall version of system components
// +optional
AppVersion string
// ClusterLevel is the expect level of cluster
// +optional
ClusterLevel *string
}

// ClusterStatus represents information about the status of a cluster.
Expand Down Expand Up @@ -277,6 +280,9 @@ type ClusterStatus struct {
// ComponentPhase is the status of components, contains "deployed", "pending-upgrade", "failed" status
// +optional
ComponentPhase ComponentPhase
// ClusterLevel is the real level of cluster
// +optional
ClusterLevel *string
}

// FinalizerName is the name identifying a finalizer during cluster lifecycle.
Expand Down
812 changes: 454 additions & 358 deletions api/platform/v1/generated.pb.go

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions api/platform/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions api/platform/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ type ClusterSpec struct {
// AppVersion is the overall version of system components
// +optional
AppVersion string `json:"appVersion,omitempty" protobuf:"bytes,27,opt,name=appVersion"`
// ClusterLevel is the expect level of cluster
// +optional
ClusterLevel *string `json:"clusterLevel,omitempty" protobuf:"bytes,28,opt,name=clusterLevel"`
}

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

// FinalizerName is the name identifying a finalizer during cluster lifecycle.
Expand Down
2 changes: 2 additions & 0 deletions api/platform/v1/types_swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions api/platform/v1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions api/platform/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions api/platform/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading