Skip to content

Commit

Permalink
feat: cluster add ClusterLevel field (#2321)
Browse files Browse the repository at this point in the history
Co-authored-by: wtaozzhang <[email protected]>
  • Loading branch information
1996wentaozhang and wtaozzhang authored Jun 6, 2024
1 parent 3adc0f4 commit 31e93ce
Show file tree
Hide file tree
Showing 9 changed files with 514 additions and 358 deletions.
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.

0 comments on commit 31e93ce

Please sign in to comment.