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

Fix code generation command #2019

Merged
merged 3 commits into from
Apr 18, 2023
Merged

Fix code generation command #2019

merged 3 commits into from
Apr 18, 2023

Conversation

shahpratikr
Copy link
Contributor

@shahpratikr shahpratikr commented Apr 14, 2023

Change Overview

This PR fixes make codegen command.
Issue: Since we don't have k8s.io/code-generator dependency in go.mod, we are missing with code-generator directory.
Solution: Import empty code-generator package in pkg/apis/cr/v1alpha1/docs.go. This will help in future to keep track of version change for code-generator package.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

Manually ran make codegen command. It generated files successfully.

@github-actions
Copy link
Contributor

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@infraq infraq added this to In Progress in Kanister Apr 14, 2023
build/codegen.sh Outdated Show resolved Hide resolved
@shahpratikr
Copy link
Contributor Author

/ok-to-test

@PrasadG193
Copy link
Contributor

@shahpratikr when I ran it locally, I also saw changes in pkg/apis/cr/v1alpha1/zz_generated.deepcopy.go, could you please confirm?

@pavannd1
Copy link
Contributor

@shahpratikr when I ran it locally, I also saw changes in pkg/apis/cr/v1alpha1/zz_generated.deepcopy.go, could you please confirm?

@PrasadG193 Were there any other changes than the license changes we reverted above?

@PrasadG193
Copy link
Contributor

@shahpratikr
Copy link
Contributor Author

added it

Copy link
Contributor

@PrasadG193 PrasadG193 left a comment

Choose a reason for hiding this comment

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

Let's add a comment on the blank import introduced. Overall looks good

Kanister automation moved this from In Progress to Reviewer approved Apr 18, 2023
@mergify mergify bot merged commit ee53919 into master Apr 18, 2023
Kanister automation moved this from Reviewer approved to Done Apr 18, 2023
@mergify mergify bot deleted the pratik/fix_codegen branch April 18, 2023 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants