-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add functional options for the Ark config install library #506
Conversation
pkg/install/config.go
Outdated
} | ||
} | ||
|
||
func WithScheduleSyncPeriod(t time.Duration) arkConfigOption { |
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.
We're planning on removing this configuration option and instead hardcoding it to 1 minute, so we may want to omit this.
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.
OK, i'll remove the option for now and leave the resource specification hardcoded to 1 minute.
pkg/install/config.go
Outdated
type arkConfig struct { | ||
backupSyncPeriod time.Duration | ||
gcSyncPeriod time.Duration | ||
scheduleSyncPeriod time.Duration |
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.
You can remove this too
Signed-off-by: Mike Arpaia <[email protected]>
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, thanks @marpaia !
LGTM |
In #437, we decided we wanted to use functional options to manage Ark config details (instead of defaulting to static times). This PR adds such a capability.