Skip to content

Commit

Permalink
Fix ResourceError kubebuilder validation
Browse files Browse the repository at this point in the history
The ResourceErrorType field was missing the "WLM" type in the kubebuilder validation.

Signed-off-by: Matt Richerson <[email protected]>
  • Loading branch information
matthew-richerson committed Jun 12, 2024
1 parent d92c9aa commit d14ebeb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha2/resource_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type ResourceErrorInfo struct {
DebugMessage string `json:"debugMessage"`

// Internal or user error
// +kubebuilder:validation:Enum=Internal;User
// +kubebuilder:validation:Enum=Internal;User;WLM
Type ResourceErrorType `json:"type"`

// Indication of how severe the error is. Minor will likely succeed, Major may
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ spec:
enum:
- Internal
- User
- WLM
type: string
userMessage:
description: Optional user facing message if the error is relevant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ spec:
enum:
- Internal
- User
- WLM
type: string
userMessage:
description: Optional user facing message if the error is relevant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ spec:
enum:
- Internal
- User
- WLM
type: string
userMessage:
description: Optional user facing message if the error is relevant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ spec:
enum:
- Internal
- User
- WLM
type: string
userMessage:
description: Optional user facing message if the error is relevant
Expand Down

0 comments on commit d14ebeb

Please sign in to comment.