Skip to content

Commit

Permalink
Add the AgentVersion field in ManagedClusterStatus (#807)
Browse files Browse the repository at this point in the history
Signed-off-by: chxcode <changxuan@ytu.edu.cn>
  • Loading branch information
chxcode authored May 28, 2024
1 parent bd8fce7 commit 71ce0fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clusters/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ type ManagedClusterStatus struct {
// +optional
KubernetesVersion string `json:"k8sVersion,omitempty"`

// agentVersion is the clusternet agent version of the sub cluster
// +optional
AgentVersion string `json:"agentVersion,omitempty"`

// platform indicates the running platform of the cluster
// +optional
Platform string `json:"platform,omitempty"`
Expand Down Expand Up @@ -344,6 +348,7 @@ type ManagedClusterStatus struct {
// +kubebuilder:printcolumn:name="KUBERNETES",type=string,JSONPath=".status.k8sVersion"
// +kubebuilder:printcolumn:name="STATUS",type=string,JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:printcolumn:name="AGENT VERSION",type=string,JSONPath=`.status.agentVersion`,description="The version of the clusternet agent",priority=100

// ManagedCluster is the Schema for the managedclusters API
type ManagedCluster struct {
Expand Down

0 comments on commit 71ce0fd

Please sign in to comment.