diff --git a/api/v1alpha1/function_types.go b/api/v1alpha1/function_types.go index 9d60958..0e8bfe0 100644 --- a/api/v1alpha1/function_types.go +++ b/api/v1alpha1/function_types.go @@ -25,6 +25,8 @@ import ( // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="Ready status" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].reason",description="Ready reason" +// +kubebuilder:printcolumn:name="Middleware",type="string",JSONPath=".status.middleware.current",description="Current deployed Middleware Version" +// +kubebuilder:printcolumn:name="Pending Rebuild",type="string",JSONPath=".status.middleware.pendingRebuild",description="Pending Rebuild" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" // Function is the Schema for the functions API. diff --git a/config/crd/bases/functions.dev_functions.yaml b/config/crd/bases/functions.dev_functions.yaml index 8c3ffa5..14fee99 100644 --- a/config/crd/bases/functions.dev_functions.yaml +++ b/config/crd/bases/functions.dev_functions.yaml @@ -23,6 +23,14 @@ spec: jsonPath: .status.conditions[?(@.type=="Ready")].reason name: Reason type: string + - description: Current deployed Middleware Version + jsonPath: .status.middleware.current + name: Middleware + type: string + - description: Pending Rebuild + jsonPath: .status.middleware.pendingRebuild + name: Pending Rebuild + type: string - jsonPath: .metadata.creationTimestamp name: Age type: date