We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52f2d47 commit 4bdcd74Copy full SHA for 4bdcd74
1 file changed
scaffold/templates/api/__groupVersion__/types.go.tpl
@@ -63,7 +63,8 @@ type {{ .kind }}Status struct {
63
// +kubebuilder:object:root=true
64
// +kubebuilder:subresource:status
65
// +kubebuilder:printcolumn:name="State",type=string,JSONPath=`.status.state`
66
-// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
+// +kubebuilder:printcolumn:name="Reason",type=string,JSONPath=`.status.conditions[?(@.type=='Ready')].reason`
67
+// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`
68
// +genclient
69
70
// {{ .kind }} is the Schema for the {{ .resource }} API.
0 commit comments