From aeed3c140e3ad2516bbcf17677a9a545924e6ee9 Mon Sep 17 00:00:00 2001 From: Matous Jobanek Date: Tue, 2 Jan 2024 18:50:14 +0100 Subject: [PATCH] print target cluster from status (#394) --- api/v1alpha1/masteruserrecord_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1alpha1/masteruserrecord_types.go b/api/v1alpha1/masteruserrecord_types.go index c085b7ed..4a0f3e52 100644 --- a/api/v1alpha1/masteruserrecord_types.go +++ b/api/v1alpha1/masteruserrecord_types.go @@ -142,7 +142,7 @@ type Cluster struct { // +kubebuilder:resource:shortName=mur // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type=="Ready")].status` // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=`.status.conditions[?(@.type=="Ready")].reason` -// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=`.spec.userAccounts[].targetCluster` +// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=`.status.userAccounts[].cluster.name` // +kubebuilder:printcolumn:name="Tier",type="string",JSONPath=`.spec.tierName` // +kubebuilder:printcolumn:name="Banned",type="string",JSONPath=`.spec.banned`,priority=1 // +kubebuilder:printcolumn:name="Disabled",type="string",JSONPath=`.spec.disabled`,priority=1