Skip to content

Commit

Permalink
api: fix WasmCodeSourceType enum validation (#3203)
Browse files Browse the repository at this point in the history
envoyextensionpolicy: fix WasmCodeSourceType enum validation

Signed-off-by: Eguzki Astiz Lezaun <eastizle@redhat.com>
  • Loading branch information
eguzki authored Apr 16, 2024
1 parent e537033 commit 0692b09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/wasm_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type WasmCodeSource struct {
}

// WasmCodeSourceType specifies the types of sources for the wasm code.
// +kubebuilder:validation:Enum=Global;Local
// +kubebuilder:validation:Enum=HTTP;Image
type WasmCodeSourceType string

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ spec:
type:
allOf:
- enum:
- Global
- Local
- HTTP
- Image
- enum:
- HTTP
- Image
Expand Down

0 comments on commit 0692b09

Please sign in to comment.