You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Writing go hooks requires to clone addon-operator repo or copy cmd/addon-operator/main.go file to own repo
Describe the solution you'd like to see
Add easy-to-import main function.
For example, move all cmd/addon-operator/main.go logic to pkg/app/main.go file, make main func exported and import it in cmd/addon-operator/main.go like this:
Another solution would be adding smth like "hooks discovery" script or package, that will scan repo with go hooks on build time and generate shallow imports of them with sdk
Describe alternatives you've considered
Simple copy of cmd/addon-operator/main.go
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Writing go hooks requires to clone addon-operator repo or copy
cmd/addon-operator/main.go
file to own repoDescribe the solution you'd like to see
Add easy-to-import main function.
For example, move all
cmd/addon-operator/main.go
logic topkg/app/main.go
file, makemain
func exported and import it incmd/addon-operator/main.go
like this:Another solution would be adding smth like "hooks discovery" script or package, that will scan repo with go hooks on build time and generate shallow imports of them with sdk
Describe alternatives you've considered
Simple copy of
cmd/addon-operator/main.go
The text was updated successfully, but these errors were encountered: