Skip to content

Commit

Permalink
Add nodeStatus.
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <[email protected]>
  • Loading branch information
xuezhaojun committed Jan 2, 2024
1 parent e678d20 commit 298fd95
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,26 @@ spec:
- type
type: object
type: array
nodeStatus:
description: NodeStatus represents the status of nodes on the managed
cluster.
properties:
ready:
description: Ready represents the number of ready nodes on the
managed cluster.
format: int32
type: integer
schedulable:
description: Schedulable represents the number of schedulable
nodes on the managed cluster.
format: int32
type: integer
total:
description: Total represents the total number of nodes on the
managed cluster.
format: int32
type: integer
type: object
version:
description: Version represents the kubernetes version of the managed
cluster.
Expand Down
19 changes: 19 additions & 0 deletions cluster/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,25 @@ type ManagedClusterStatus struct {
// vendor or version specific and may not be included from all managed clusters.
// +optional
ClusterClaims []ManagedClusterClaim `json:"clusterClaims,omitempty"`

// NodeStatus represents the status of nodes on the managed cluster.
// +optional
NodeStatus NodeStatus `json:"nodeStatus,omitempty"`
}

// NodeStatus represents the status of nodes on the managed cluster.
type NodeStatus struct {
// Ready represents the number of ready nodes on the managed cluster.
// +optional
Ready int32 `json:"ready,omitempty"`

// Schedulable represents the number of schedulable nodes on the managed cluster.
// +optional
Schedulable int32 `json:"schedulable,omitempty"`

// Total represents the total number of nodes on the managed cluster.
// +optional
Total int32 `json:"total,omitempty"`
}

// ManagedClusterVersion represents version information about the managed cluster.
Expand Down
12 changes: 12 additions & 0 deletions cluster/v1/zz_generated.swagger_doc_generated.go

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

0 comments on commit 298fd95

Please sign in to comment.