Skip to content

Commit 23768bd

Browse files
Display namespace of the referenced ClusterClass
Signed-off-by: Danil-Grigorev <[email protected]>
1 parent a6927f8 commit 23768bd

File tree

3 files changed

+26
-19
lines changed

3 files changed

+26
-19
lines changed

api/v1beta1/cluster_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,7 @@ func (v APIEndpoint) String() string {
10371037
// +kubebuilder:storageversion
10381038
// +kubebuilder:subresource:status
10391039
// +kubebuilder:printcolumn:name="ClusterClass",type="string",JSONPath=".spec.topology.class",description="ClusterClass of this Cluster, empty if the Cluster is not using a ClusterClass"
1040+
// +kubebuilder:printcolumn:name="ClusterClass_Namespace",type="string",JSONPath=".spec.topology.classNamespace",description="Template namespace of this Cluster",priority=10
10401041
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="Cluster status such as Pending/Provisioning/Provisioned/Deleting/Failed"
10411042
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Cluster"
10421043
// +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.topology.version",description="Kubernetes version associated with this Cluster"

config/crd/bases/cluster.x-k8s.io_clusters.yaml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/proposals/20240916-improve-status-in-CAPI-resources.md

+20-19
Original file line numberDiff line numberDiff line change
@@ -933,25 +933,26 @@ Notes:
933933

934934
#### Cluster Print columns
935935

936-
| Current | To be |
937-
|-----------------|-----------------------|
938-
| `NAME` | `NAME` |
939-
| `CLUSTER CLASS` | `CLUSTER CLASS` |
940-
| `PHASE` | `PAUSED` (new) (*) |
941-
| `AGE` | `AVAILABLE` (new) |
942-
| `VERSION` | `CP_DESIRED` (new) |
943-
| | `CP_CURRENT`(new) (*) |
944-
| | `CP_READY` (new) (*) |
945-
| | `CP_AVAILABLE` (new) |
946-
| | `CP_UP-TO-DATE` (new) |
947-
| | `W_DESIRED` (new) |
948-
| | `W_CURRENT`(new) (*) |
949-
| | `W_READY` (new) (*) |
950-
| | `W_AVAILABLE` (new) |
951-
| | `W_UP-TO-DATE` (new) |
952-
| | `PHASE` |
953-
| | `AGE` |
954-
| | `VERSION` |
936+
| Current | To be |
937+
|-----------------|---------------------------------|
938+
| `NAME` | `NAME` |
939+
| `CLUSTER CLASS` | `CLUSTER CLASS` |
940+
| | `TOPOLOGY_NAMESPACE` (new) (*) |
941+
| `PHASE` | `PAUSED` (new) (*) |
942+
| `AGE` | `AVAILABLE` (new) |
943+
| `VERSION` | `CP_DESIRED` (new) |
944+
| | `CP_CURRENT`(new) (*) |
945+
| | `CP_READY` (new) (*) |
946+
| | `CP_AVAILABLE` (new) |
947+
| | `CP_UP-TO-DATE` (new) |
948+
| | `W_DESIRED` (new) |
949+
| | `W_CURRENT`(new) (*) |
950+
| | `W_READY` (new) (*) |
951+
| | `W_AVAILABLE` (new) |
952+
| | `W_UP-TO-DATE` (new) |
953+
| | `PHASE` |
954+
| | `AGE` |
955+
| | `VERSION` |
955956

956957
(*) visible only when using `kubectl get -o wide`
957958

0 commit comments

Comments
 (0)