From 05c3020803d8b52a79af77237f98717d001ef0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20St=C3=A4bler?= Date: Mon, 27 Apr 2026 13:14:35 +0200 Subject: [PATCH] Add details about middleware version and pending rebuild in function overview (#95) (cherry picked from commit 30b6cf25994ad8344fe5e68163772dd6afc64000) --- api/v1alpha1/function_types.go | 2 ++ config/crd/bases/functions.dev_functions.yaml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/api/v1alpha1/function_types.go b/api/v1alpha1/function_types.go index cb7af2b..422f763 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 ec422b9..a82ed6f 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