-
Notifications
You must be signed in to change notification settings - Fork 28
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
Export types to make them reusable for other packages #33
Conversation
@amshuman-kr You have pull request review open invite, please check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rfranzke! Do you plan to reuse them elsewhere?
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rfranzke make check
is failing with the following logs. Could you please address them. Apart from that, LGTM.
pkg/restarter/types.go:47:6: exported type Service should have comment or be unexported
pkg/restarter/types.go:51:6: exported type DependantPods should have comment or be unexported
pkg/scaler/types.go:61:6: exported type ProbeDependants should have comment or be unexported
pkg/scaler/types.go:67:6: exported type ProbeConfig should have comment or be unexported
pkg/scaler/types.go:77:6: exported type ProbeDetails should have comment or be unexported
pkg/scaler/types.go:81:6: exported type DependantScaleDetails should have comment or be unexported
Yes, as part of gardener/gardener#2754, the Helm charts will be eliminated in favor of Golang struct usages, and it would be great if the DWD config can be handled similarly.
Could you recommend reasonable doc strings (maybe directly via GitHub suggestions)? I'm not too much into all this code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added the suggested comments for the now public types.
Co-authored-by: Amshuman K R <amshuman.rao.karaya@sap.com>
Co-authored-by: Amshuman K R <amshuman.rao.karaya@sap.com>
Co-authored-by: Amshuman K R <amshuman.rao.karaya@sap.com>
Co-authored-by: Amshuman K R <amshuman.rao.karaya@sap.com>
Co-authored-by: Amshuman K R <amshuman.rao.karaya@sap.com>
Co-authored-by: Amshuman K R <amshuman.rao.karaya@sap.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
What this PR does / why we need it:
Export types to make them reusable for other packages
/invite @amshuman-kr
/squash
Release note: