Add EnterpriseConfig stubs (#6566)

This commit is contained in:
Matt Keeler 2019-10-01 14:34:55 -04:00 committed by GitHub
parent cfa879d63c
commit 9bd378a95c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -424,6 +424,9 @@ type Config struct {
// AutoEncryptAllowTLS is whether to enable the server responding to // AutoEncryptAllowTLS is whether to enable the server responding to
// AutoEncrypt.Sign requests. // AutoEncrypt.Sign requests.
AutoEncryptAllowTLS bool AutoEncryptAllowTLS bool
// Embedded Consul Enterprise specific configuration
*EnterpriseConfig
} }
// ToTLSUtilConfig is only used by tests, usually the config is being passed // ToTLSUtilConfig is only used by tests, usually the config is being passed
@ -543,6 +546,7 @@ func DefaultConfig() *Config {
ServerHealthInterval: 2 * time.Second, ServerHealthInterval: 2 * time.Second,
AutopilotInterval: 10 * time.Second, AutopilotInterval: 10 * time.Second,
EnterpriseConfig: DefaultEnterpriseConfig(),
} }
// Increase our reap interval to 3 days instead of 24h. // Increase our reap interval to 3 days instead of 24h.

View File

@ -0,0 +1,9 @@
// +build !consulent
package consul
type EnterpriseConfig struct{}
func DefaultEnterpriseConfig() *EnterpriseConfig {
return nil
}