mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 10:58:25 +00:00
Add EnterpriseConfig stubs (#6566)
This commit is contained in:
parent
abed91d069
commit
fc4bcfd81f
@ -424,6 +424,9 @@ type Config struct {
|
||||
// AutoEncryptAllowTLS is whether to enable the server responding to
|
||||
// AutoEncrypt.Sign requests.
|
||||
AutoEncryptAllowTLS bool
|
||||
|
||||
// Embedded Consul Enterprise specific configuration
|
||||
*EnterpriseConfig
|
||||
}
|
||||
|
||||
// ToTLSUtilConfig is only used by tests, usually the config is being passed
|
||||
@ -543,6 +546,7 @@ func DefaultConfig() *Config {
|
||||
|
||||
ServerHealthInterval: 2 * time.Second,
|
||||
AutopilotInterval: 10 * time.Second,
|
||||
EnterpriseConfig: DefaultEnterpriseConfig(),
|
||||
}
|
||||
|
||||
// Increase our reap interval to 3 days instead of 24h.
|
||||
|
9
agent/consul/enterprise_config_oss.go
Normal file
9
agent/consul/enterprise_config_oss.go
Normal file
@ -0,0 +1,9 @@
|
||||
// +build !consulent
|
||||
|
||||
package consul
|
||||
|
||||
type EnterpriseConfig struct{}
|
||||
|
||||
func DefaultEnterpriseConfig() *EnterpriseConfig {
|
||||
return nil
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user