Skip to content

Conversation

@chris-sun-star
Copy link
Member

…bectl -o wide

Summary

fix #622 display image and storage config of the obcluster when getting obcluter using kubectl get obcluster -o wide

Solution Description

//+kubebuilder:printcolumn:name="ClusterName",type="string",JSONPath=".spec.clusterName"
//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
//+kubebuilder:printcolumn:name="Image",type="string",JSONPath=".spec.observer.image",priority=1
//+kubebuilder:printcolumn:name="Storage",type="string",JSONPath=".spec.observer.storage",priority=1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The storage seems not to be in type string, what will kubectl get xxx -o wide print?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
it's soemthing like this

@chris-sun-star chris-sun-star added this to the 2.3.1 milestone Nov 18, 2024
@powerfooI powerfooI merged commit 627024a into oceanbase:master Nov 18, 2024
8 checks passed
@powerfooI powerfooI removed this from the 2.3.1 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Display more information about the obcluster when getting the resource using kubectl get obcluster -o wide

2 participants