-
Notifications
You must be signed in to change notification settings - Fork 101
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
Configurable timeouts and synchronisation intervals #117
Conversation
165f226
to
ebba8ad
Compare
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.
@kuritka looks very cool. While I'm going through a deeper review, could you please rebase with recent master and make some whitespace busting on the way ?
git rebase master
First, rewinding head to replay your work on top of it...
Applying: Configurable timeouts and synchronisation intervals
Using index info to reconstruct a base tree...
M go.mod
M go.sum
M pkg/controller/gslb/gslb_controller_test.go
.git/rebase-apply/patch:74: new blank line at EOF.
+
.git/rebase-apply/patch:781: new blank line at EOF.
+
.git/rebase-apply/patch:821: new blank line at EOF.
+
.git/rebase-apply/patch:859: new blank line at EOF.
+
.git/rebase-apply/patch:898: new blank line at EOF.
+
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
Falling back to patching base and 3-way merge...
Auto-merging pkg/controller/gslb/gslb_controller_test.go
Auto-merging go.sum
Auto-merging go.mod
Thanks!
d69f7d6
to
568c0e5
Compare
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.
Small inline documentation nitpick. Otherwise looks totally great 👍
568c0e5
to
fc3ab54
Compare
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.
@kuritka , looks good to me, just a minor one from me regarding make and GH actions test targets.
resolves #82 remove `pkg/test` (already covered by terratest) and move `helpers.go` from `/pkg/controller/gslb/` to `/pkg/controller/gslb/internal/` add depresolver - abstracts multiple configurations into single point of access - provides predefined values when configuration is missing - validates configuration - executes once covered by unit tests created `internal` to split logic into maintainable packages and reduce public API surface move `YamlToGslb` into `internal utils` (reusing `YamlToGslb` within depresolver tests) Update controller, tests, terratests to be able to use depresolver add configuration for - DnsTtlSeconds - SplitBrainThresholdSeconds - ExternalDNSSyncSeconds - ReconcileRequeueSeconds - _can be extended for other inputs_
fc3ab54
to
f927a81
Compare
resolves #82
remove
pkg/test
(already covered by terratest) andhelpers.go
from/pkg/controller/gslb/
add depresolver
covered by unit tests
created
internal
to split logic into maintainable packages and reduce public API surfacemove
YamlToGslb
intointernal utils
(reusing YamlToGslb within depresolver tests)Update controller, tests, terratests to be able to use depresolver
add configuration for