Skip to content

Commit b07a2cf

Browse files
Provide namespace of the referenced ClusterClass in TEMPLATENAMESPACE
Signed-off-by: Danil-Grigorev <[email protected]>
1 parent a6927f8 commit b07a2cf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
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="TemplateNamespace",type="string",JSONPath="..['spec.topology.classNamespace','metadata.namespace']",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.

0 commit comments

Comments
 (0)