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

Update types.go #5691

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update types.go #5691

wants to merge 1 commit into from

Conversation

LavredisG
Copy link
Contributor

@LavredisG LavredisG commented Oct 14, 2024

/kind documentation

@karmada-bot karmada-bot added the kind/documentation Categorizes issue or PR as related to documentation. label Oct 14, 2024
@karmada-bot karmada-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 14, 2024
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.75%. Comparing base (201409c) to head (937d7c6).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5691   +/-   ##
=======================================
  Coverage   37.75%   37.75%           
=======================================
  Files         649      649           
  Lines       45133    45133           
=======================================
  Hits        17042    17042           
  Misses      26795    26795           
  Partials     1296     1296           
Flag Coverage Δ
unittests 37.75% <ø> (ø)

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.

Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/assign

Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks @LavredisG for doing this. It looks great!

But there is another file which has almost the same content that needs to be fixed, would you like the fix them as well?

By the way, if you touch the file linked above, you have to generate the file by following command:

make update

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 14, 2024
@LavredisG
Copy link
Contributor Author

/lgtm

Thanks @LavredisG for doing this. It looks great!

But there is another file which has almost the same content that needs to be fixed, would you like the fix them as well?

By the way, if you touch the file linked above, you have to generate the file by following command:

make update

Once I find some time I will probably fix the other one too. Could you please explain a bit more about the "make update" command? I do these changes from github gui, but in order to change the linked file I should first fork the repo and work on it locally in order to then execute the command?

@RainbowMango
Copy link
Member

Could you please explain a bit more about the "make update" command?

This is a Makefile command and it will run some scripts to generates other files.

I do these changes from github gui, but in order to change the linked file I should first fork the repo and work on it locally in order to then execute the command?

Yes, I think so. You need to fork it on your local machine and run the command above.
But don't worry, if you can't do that, I can help with the rest.

@karmada-bot karmada-bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 16, 2024
@karmada-bot
Copy link
Collaborator

New changes are detected. LGTM label has been removed.

@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from rainbowmango. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@karmada-bot karmada-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 16, 2024
@LavredisG
Copy link
Contributor Author

Could you please explain a bit more about the "make update" command?

This is a Makefile command and it will run some scripts to generates other files.

I do these changes from github gui, but in order to change the linked file I should first fork the repo and work on it locally in order to then execute the command?

Yes, I think so. You need to fork it on your local machine and run the command above. But don't worry, if you can't do that, I can help with the rest.

After running the make update command I got many "unused parameter" warnings on zz_generated.openapi.go and many "APU Rule violation" while the command was running, is that expected?

@RainbowMango
Copy link
Member

After running the make update command I got many "unused parameter" warnings on zz_generated.openapi.go and many "APU Rule violation" while the command was running, is that expected?

I don't find any unused parameter warnings on my side, but the API Rule violation warning can be ignored(I don't know why honestly, but the result is good).

As long as it ends without errors, it should be OK. Just reminder to commit all generated files.
I can see that one file(api/openapi-spec/swagger.json) is missing from this PR so far, everything else looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants