Skip to content

Commit 1e70f47

Browse files
authored
Fix small typo on the kubebuilder FunctionType's validation (#173)
Signed-off-by: Spolti <filippespolti@gmail.com>
1 parent 6278ce5 commit 1e70f47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/function.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ type Function struct {
5252
// <path_to_custom_script>#<custom_service_method>.
5353
// +kubebuilder:validation:Required
5454
Operation string `json:"operation" validate:"required,oneof=rest rpc expression"`
55-
// Defines the function type. Is either `custom`, `rest`, `rpc`, `expression`, `graphql`, `asyncapi`, `asyncapi` or `asyncapi`.
55+
// Defines the function type. Is either `custom`, `rest`, `rpc`, `expression`, `graphql`, `odata` or `asyncapi`.
5656
// Default is `rest`.
57-
// +kubebuilder:validation:Enum=rest;rpc;expression;graphql;asyncapi;asyncapi;asyncapi;custom
57+
// +kubebuilder:validation:Enum=rest;rpc;expression;graphql;odata;asyncapi;custom
5858
// +kubebuilder:default=rest
5959
Type FunctionType `json:"type,omitempty"`
6060
// References an auth definition name to be used to access to resource defined in the operation parameter.

0 commit comments

Comments
 (0)