Skip to content

Commit 30b6921

Browse files
authored
Add func short name for function (#96)
1 parent 30b6cf2 commit 30b6921

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

api/v1alpha1/function_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323

2424
// +kubebuilder:object:root=true
2525
// +kubebuilder:subresource:status
26+
// +kubebuilder:resource:shortName=func
2627
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="Ready status"
2728
// +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].reason",description="Ready reason"
2829
// +kubebuilder:printcolumn:name="Middleware",type="string",JSONPath=".status.middleware.current",description="Current deployed Middleware Version"

config/crd/bases/functions.dev_functions.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
kind: Function
1212
listKind: FunctionList
1313
plural: functions
14+
shortNames:
15+
- func
1416
singular: function
1517
scope: Namespaced
1618
versions:

0 commit comments

Comments
 (0)