Skip to content

Conversation

@kyasbal
Copy link
Member

@kyasbal kyasbal commented Oct 16, 2025

These changes are already reviewed when these were merged into main branch, thus I'll skip review requirement.

* feat(server): Add ServerFactory type to configure the gin.Engine instance easier in the initialization phase

Several KHI feature sometimes needs to register API handler on gin.Engine but it was difficult before.
This makes the initialization code under cmd/kubernetes-history-inspector harder. This change introduced a new type ServerFactory used for instancing a new gin.Engine instance.
This type receives Option parameters to extend the server instance. This allows user to extend its behavior just by adding new init() function on cmd/kubernetes-history-inspector or each task package folders.

* fix points pointed out by gemini-code-review
* fix lint related minor issues

* exclude *.go files under `**/test` folder to be evaluated by "no-testutil-in-non-test-files" rule.
* Use non containerlized golangci-lint when it's available to run them faster.

* fix issues pointed by gemini-code-assist
@kyasbal kyasbal closed this Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant