Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add image and storage to display when get obclsuter resource using ku… #639

Merged
merged 1 commit into from
Nov 18, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants