Commit f722038
authored
Thing-flinger: Allow deployment to single node (#837)
`sled-agent-overlay-files` generates secret shares for rack unlock in a
multinode cluster. However, rack secrets and their resulting shares can only be
created for clusters with 2 or more nodes. As we want to be able to use
thing-flinger to deploy to a single node system, we skip generation of the
secret if there is only one deployment server. This works because the sled-agent
bootstrap code runs in single node mode if no share is found.
Without this change, the user would get a `vsss_rs::Error::SharingMinThreshold`
error when running `thing-flinger overlay`.1 parent 9afe1f8 commit f722038
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
0 commit comments