get rid of copied fields in the options and using wraped componentconfig fields

This commit is contained in:
stewart-yu
2019-01-12 19:13:05 +08:00
parent 3478647333
commit 5b43a24318
24 changed files with 37 additions and 99 deletions

View File

@@ -24,9 +24,7 @@ import (
// GarbageCollectorControllerOptions holds the GarbageCollectorController options.
type GarbageCollectorControllerOptions struct {
ConcurrentGCSyncs int32
GCIgnoredResources []kubectrlmgrconfig.GroupResource
EnableGarbageCollector bool
*kubectrlmgrconfig.GarbageCollectorControllerConfiguration
}
// AddFlags adds flags related to GarbageCollectorController for controller manager to the specified FlagSet.