Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

config/types/locksmith: add missing fields #47

Merged
merged 1 commit into from Apr 13, 2017

Conversation

cgonyeo
Copy link
Contributor

@cgonyeo cgonyeo commented Mar 28, 2017

This commit allows users to configure all fields available in locksmithd, including things like reboot windows and etcd endpoints.

Fixes coreos/bugs#1884.

@cgonyeo cgonyeo changed the title config/locksmith: add fields for window start and length config/types/locksmith: add missing fields Apr 5, 2017
@cgonyeo
Copy link
Contributor Author

cgonyeo commented Apr 5, 2017

I just changed this PR to include all missing locksmithd fields.

@@ -39,3 +66,44 @@ func (r RebootStrategy) Validate() report.Report {
return report.ReportFromError(ErrUnknownStrategy, report.EntryError)
}
}

func (s WindowStart) Validate() report.Report {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this how locksmith parses the parameters?

@cgonyeo cgonyeo force-pushed the locksmith-window branch 4 times, most recently from 515b29d to 11747e1 Compare April 11, 2017 15:35
@cgonyeo
Copy link
Contributor Author

cgonyeo commented Apr 11, 2017

Lined the fields up, and nope it isn't. Looks like users can also specify just a time, and not a day. Fixing that now.

@crawford
Copy link
Contributor

Not necessarily for this PR, but https://github.com/coreos/locksmith#maximum-semaphore would also be nice to set in CLCs.

This commit adds support for configuring all locksmithd fields, beyond
just the reboot strategy.
@cgonyeo cgonyeo merged commit 61055f8 into coreos:master Apr 13, 2017
@cgonyeo cgonyeo deleted the locksmith-window branch April 13, 2017 09:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants