mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-12 08:04:25 +08:00
* feat(go): add support for feature flags; * feat(go): store feature flags in code; * feat(go): report base domain on license validation; * feat(go): remove nm base domain required binding; * feat(go): add a flag for oauth support;
24 lines
667 B
Go
24 lines
667 B
Go
package logic
|
|
|
|
import "github.com/gravitl/netmaker/models"
|
|
|
|
// EnterpriseCheckFuncs - can be set to run functions for EE
|
|
var EnterpriseCheckFuncs []func()
|
|
var GetFeatureFlags = func() models.FeatureFlags {
|
|
return models.FeatureFlags{}
|
|
}
|
|
|
|
// == Join, Checkin, and Leave for Server ==
|
|
|
|
// KUBERNETES_LISTEN_PORT - starting port for Kubernetes in order to use NodePort range
|
|
const KUBERNETES_LISTEN_PORT = 31821
|
|
|
|
// KUBERNETES_SERVER_MTU - ideal mtu for kubernetes deployments right now
|
|
const KUBERNETES_SERVER_MTU = 1024
|
|
|
|
// EnterpriseCheck - Runs enterprise functions if presented
|
|
func EnterpriseCheck() {
|
|
for _, check := range EnterpriseCheckFuncs {
|
|
check()
|
|
}
|
|
}
|