Skip to content

Commit

Permalink
Merge pull request #4663 from XiShanYongYe-Chang/set-enum-value-for-o…
Browse files Browse the repository at this point in the history
…perator

Set enum value for operator in Remedy API
  • Loading branch information
karmada-bot authored Feb 28, 2024
2 parents af1141c + 8a101eb commit 44b4ca5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ spec:
operator:
description: Operator represents a conditionType's relationship
to a conditionStatus. Valid operators are Equal, NotEqual.
enum:
- Equal
- NotEqual
type: string
required:
- conditionStatus
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/remedy/v1alpha1/remedy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ type ClusterConditionRequirement struct {
ConditionType ConditionType `json:"conditionType"`
// Operator represents a conditionType's relationship to a conditionStatus.
// Valid operators are Equal, NotEqual.
//
// +kubebuilder:validation:Enum=Equal;NotEqual
// +required
Operator ClusterConditionOperator `json:"operator"`
// ConditionStatus specifies the ClusterStatue condition status.
Expand Down
3 changes: 1 addition & 2 deletions pkg/scheduler/framework/testing/mock_interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44b4ca5

Please sign in to comment.