Stratify certificate loading and self-sign cert generation

This removes all dependencies on Config during cert generation, only operating
on ServerRunOptions. This way we get rid of the repeated call of Config.Complete
and cleanly stratify the GenericApiServer bootstrapping.
This commit is contained in:
Dr. Stefan Schimanski
2016-12-01 17:21:49 +01:00
committed by Dr. Stefan Schimanski
parent 7d1a7eae50
commit 5b1d45bc15
9 changed files with 446 additions and 319 deletions

View File

@@ -75,7 +75,6 @@ type ServerRunOptions struct {
// for testing). This is not actually exposed as a flag.
DefaultStorageVersions string
TargetRAMMB int
TLSCAFile string
WatchCacheSizes []string
}