Skip to content

Commit 71ce0fd

Browse files
authored
Add the AgentVersion field in ManagedClusterStatus (#807)
Signed-off-by: chxcode <changxuan@ytu.edu.cn>
1 parent bd8fce7 commit 71ce0fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clusters/v1beta1/types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ type ManagedClusterStatus struct {
241241
// +optional
242242
KubernetesVersion string `json:"k8sVersion,omitempty"`
243243

244+
// agentVersion is the clusternet agent version of the sub cluster
245+
// +optional
246+
AgentVersion string `json:"agentVersion,omitempty"`
247+
244248
// platform indicates the running platform of the cluster
245249
// +optional
246250
Platform string `json:"platform,omitempty"`
@@ -344,6 +348,7 @@ type ManagedClusterStatus struct {
344348
// +kubebuilder:printcolumn:name="KUBERNETES",type=string,JSONPath=".status.k8sVersion"
345349
// +kubebuilder:printcolumn:name="STATUS",type=string,JSONPath=".status.conditions[?(@.type=='Ready')].status"
346350
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
351+
// +kubebuilder:printcolumn:name="AGENT VERSION",type=string,JSONPath=`.status.agentVersion`,description="The version of the clusternet agent",priority=100
347352

348353
// ManagedCluster is the Schema for the managedclusters API
349354
type ManagedCluster struct {

0 commit comments

Comments
 (0)