Skip to content

Commit 18d0aca

Browse files
authored
Merge branch 'main' into update-readme-with-shortname
2 parents 04b8b09 + 30b6921 commit 18d0aca

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

api/v1alpha1/function_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ 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"
29+
// +kubebuilder:printcolumn:name="Middleware",type="string",JSONPath=".status.middleware.current",description="Current deployed Middleware Version"
30+
// +kubebuilder:printcolumn:name="Pending Rebuild",type="string",JSONPath=".status.middleware.pendingRebuild",description="Pending Rebuild"
2831
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
2932

3033
// Function is the Schema for the functions API.

config/crd/bases/functions.dev_functions.yaml

Lines changed: 10 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:
@@ -23,6 +25,14 @@ spec:
2325
jsonPath: .status.conditions[?(@.type=="Ready")].reason
2426
name: Reason
2527
type: string
28+
- description: Current deployed Middleware Version
29+
jsonPath: .status.middleware.current
30+
name: Middleware
31+
type: string
32+
- description: Pending Rebuild
33+
jsonPath: .status.middleware.pendingRebuild
34+
name: Pending Rebuild
35+
type: string
2636
- jsonPath: .metadata.creationTimestamp
2737
name: Age
2838
type: date

0 commit comments

Comments
 (0)