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

🌱 upgrade sdk-go #498

Merged

Conversation

skeeey
Copy link
Member

@skeeey skeeey commented Jun 5, 2024

Summary

Related issue(s)

Fixes #

@openshift-ci openshift-ci bot requested review from elgnay and zhujian7 June 5, 2024 06:58
Copy link

codecov bot commented Jun 5, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 8 lines in your changes missing coverage. Please review.

Project coverage is 62.10%. Comparing base (0357cb9) to head (10343cf).
Report is 3 commits behind head on main.

Files Patch % Lines
...setcontroller/manifestworkreplicaset_controller.go 11.11% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #498      +/-   ##
==========================================
- Coverage   62.13%   62.10%   -0.03%     
==========================================
  Files         140      140              
  Lines       11764    11773       +9     
==========================================
+ Hits         7309     7312       +3     
- Misses       3683     3689       +6     
  Partials      772      772              
Flag Coverage Δ
unit 62.10% <33.33%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

go.mod Outdated
@@ -36,7 +36,7 @@ require (
k8s.io/utils v0.0.0-20240310230437-4693a0247e57
open-cluster-management.io/addon-framework v0.9.1-0.20240419070222-e703fc5a2556
open-cluster-management.io/api v0.13.1-0.20240521030453-9d94703b9eba
open-cluster-management.io/sdk-go v0.13.1-0.20240520073308-f18d198a844d
open-cluster-management.io/sdk-go v0.13.1-0.20240605032202-2a0633ddf34e
Copy link
Member

Choose a reason for hiding this comment

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

@skeeey please update to latest commit: open-cluster-management-io/sdk-go@874c2c7

there should no code change for your PR, just upgrade the dependency to get this fix: open-cluster-management-io/sdk-go#52

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@skeeey skeeey force-pushed the upgrade-sdk branch 2 times, most recently from cbf3c46 to 9c9c99a Compare June 5, 2024 08:52
@skeeey
Copy link
Member Author

skeeey commented Jun 5, 2024

/assign @qiujian16

@@ -278,8 +278,8 @@ func CreateManifestWork(mwrSet *workapiv1alpha1.ManifestWorkReplicaSet, clusterN
ManifestWorkReplicaSetPlacementNameLabelKey: placementRefName,
},
Annotations: map[string]string{
common.CloudEventsDataTypeAnnotationKey: payload.ManifestBundleEventDataType.String(),
common.CloudEventsGenerationAnnotationKey: fmt.Sprintf("%d", mwrSet.Generation),
common.CloudEventsDataTypeAnnotationKey: payload.ManifestBundleEventDataType.String(),
Copy link
Member

Choose a reason for hiding this comment

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

could you explain why these annotation is needed? should it be optionally set?

Copy link
Member Author

Choose a reason for hiding this comment

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

add the comments, these are only needed by cloudevents client

Copy link
Member Author

Choose a reason for hiding this comment

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

only add them when cloudevents client is used

Copy link
Member Author

Choose a reason for hiding this comment

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

removed

@skeeey skeeey force-pushed the upgrade-sdk branch 3 times, most recently from 8e3d0cf to b93be12 Compare June 6, 2024 01:42
Signed-off-by: Wei Liu <[email protected]>
Copy link
Member

@qiujian16 qiujian16 left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 6, 2024
Copy link
Contributor

openshift-ci bot commented Jun 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@openshift-ci openshift-ci bot added the approved label Jun 6, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 61a74bb into open-cluster-management-io:main Jun 6, 2024
15 checks passed
@skeeey skeeey deleted the upgrade-sdk branch June 12, 2024 09:33
haoqing0110 pushed a commit to haoqing0110/OCM that referenced this pull request Jun 13, 2024
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