Skip to content
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

Merged
merged 1 commit into from
May 22, 2018
Merged

Add functional options for the Ark config install library #506

merged 1 commit into from
May 22, 2018

Conversation

marpaia
Copy link
Contributor

@marpaia marpaia commented May 18, 2018

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.

}
}

func WithScheduleSyncPeriod(t time.Duration) arkConfigOption {
Copy link
Contributor

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.

Copy link
Contributor Author

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.

type arkConfig struct {
backupSyncPeriod time.Duration
gcSyncPeriod time.Duration
scheduleSyncPeriod time.Duration
Copy link
Contributor

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

Copy link
Contributor

@skriss skriss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @marpaia !

@ncdc
Copy link
Contributor

ncdc commented May 22, 2018

LGTM

@ncdc ncdc added this to the v0.9.0 milestone May 22, 2018
@ncdc ncdc merged commit 8ce2006 into vmware-tanzu:master May 22, 2018
@marpaia marpaia deleted the config-options branch May 22, 2018 18:26
@jrnt30 jrnt30 mentioned this pull request Aug 31, 2018
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.

3 participants