From 157c381404ac7b2179d5987371ee1b6f8ad13d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20St=C3=A4bler?= Date: Mon, 27 Apr 2026 14:50:24 +0200 Subject: [PATCH] Add `func` short name for function (#96) (cherry picked from commit 30b692109ac7581fdf9e81b8a6e25558dbecc313) --- api/v1alpha1/function_types.go | 1 + config/crd/bases/functions.dev_functions.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/api/v1alpha1/function_types.go b/api/v1alpha1/function_types.go index cb7af2b..ae5571f 100644 --- a/api/v1alpha1/function_types.go +++ b/api/v1alpha1/function_types.go @@ -23,6 +23,7 @@ import ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:resource:shortName=func // +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="Age",type="date",JSONPath=".metadata.creationTimestamp" diff --git a/config/crd/bases/functions.dev_functions.yaml b/config/crd/bases/functions.dev_functions.yaml index ec422b9..f720399 100644 --- a/config/crd/bases/functions.dev_functions.yaml +++ b/config/crd/bases/functions.dev_functions.yaml @@ -11,6 +11,8 @@ spec: kind: Function listKind: FunctionList plural: functions + shortNames: + - func singular: function scope: Namespaced versions: