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

use kubebuilder go/v4 template #830

Merged
merged 5 commits into from
Feb 5, 2024
Merged

use kubebuilder go/v4 template #830

merged 5 commits into from
Feb 5, 2024

Conversation

llamerada-jp
Copy link
Contributor

@llamerada-jp llamerada-jp commented Jan 24, 2024

Update kubebuilder template to go/v4 from go/v3. However, no code is moved to the cmd, internal, and test directories. This would be done in a different PR to avoid conflicts with other PRs. And the resolutions to lint's point will be addressed after the directory move is complete.

a part of: #760

@llamerada-jp llamerada-jp requested a review from a team as a code owner January 24, 2024 04:43
@llamerada-jp llamerada-jp marked this pull request as draft January 24, 2024 05:13
@llamerada-jp llamerada-jp force-pushed the use-kubebuilder-go-v4-1 branch 2 times, most recently from c68d726 to 3d0c797 Compare January 24, 2024 09:23
@llamerada-jp llamerada-jp marked this pull request as ready for review January 25, 2024 09:39
Copy link
Contributor

@peng225 peng225 left a comment

Choose a reason for hiding this comment

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

In this commit message, you say as follows:

And since this project does not use custom
resources, generate-api is not generated either. Therefore, the
related codes are removed.

However, TopoLVM uses LogicalVolume custom resource. Is that OK to remove generate-api target?

Copy link
Contributor

@cupnes cupnes left a comment

Choose a reason for hiding this comment

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

Other than what @peng225 pointed out, there seems to be no problem.

@llamerada-jp
Copy link
Contributor Author

@peng225 @cupnes
The change was wrong and generate-api has been reverted.

go.mod Outdated Show resolved Hide resolved
Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
- Since there is a mix of markers with and without space at the head
  of the comment, it was unified without.

Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
Remove manifests below config, since those are neither used nor
maintained.

Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
- Install and run golangci-lint since kubebuilder uses it.
- Some rules have been disabled because conflicts with other PRs
  will occur if all the points currently made are addressed.
- The staticcheck built into golangci-lint does not allow to exclude
  single lines and specific rules, so we disable it and run the
  existing staticcheck.

Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
@peng225 peng225 merged commit cea2337 into main Feb 5, 2024
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants