Skip to content

Commit

Permalink
Make the work feedback rule jaonpath name unique
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Nov 20, 2024
1 parent db876bf commit ad1f454
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions work/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ type ManifestConfigOption struct {

// FeedbackRules defines what resource status field should be returned. If it is not set or empty,
// no feedback rules will be honored.
// +listType:=map
// +listMapKey:=type
// +optional
FeedbackRules []FeedbackRule `json:"feedbackRules,omitempty"`

Expand Down Expand Up @@ -226,6 +228,8 @@ type FeedbackRule struct {
Type FeedBackType `json:"type"`

// JsonPaths defines the json path under status field to be synced.
// +listType:=map
// +listMapKey:=name
// +optional
JsonPaths []JsonPath `json:"jsonPaths,omitempty"`
}
Expand Down

0 comments on commit ad1f454

Please sign in to comment.