Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Make the work feedback rule jaonpath name unique #346

Merged

Conversation

zhujian7
Copy link
Member

Summary

Related issue(s)

Fixes #

@zhujian7
Copy link
Member Author

/hold

work/v1/types.go Outdated
@@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, I am not sure if we should treat the type as the map key, if we do, If we do this, it may be incompatible, but if we do not, users can still configure two same name jsonpaths:

feedbackRules:
- type: JSONPaths
   jsonPaths:
   - name: "Replica"
      path: .spec.replicas
- type: JSONPaths
   jsonPaths:
   - name: "Replica"
      path: .status.replicas

@qiujian16 @zhiweiyin318 WDYT?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's do name at first...I am not sure if anyone uses multiple jsonPaths today, not quite likely.

@zhujian7
Copy link
Member Author

/assign @qiujian16 @zhiweiyin318

Signed-off-by: zhujian <[email protected]>
@qiujian16
Copy link
Member

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 20, 2024
Copy link
Contributor

openshift-ci bot commented Nov 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, zhujian7

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@zhiweiyin318
Copy link
Member

/unhold

@openshift-merge-bot openshift-merge-bot bot merged commit cb7ce98 into open-cluster-management-io:main Nov 20, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants