feat: centralize app release configuration
This commit is contained in:
@@ -60,6 +60,7 @@ var (
|
||||
tenantByIDCache = newConfigCache[*types.Tenant]()
|
||||
registrationSMSCache = newConfigCache[bool]()
|
||||
thirdPartyConfigCache = newConfigCache[map[string]string]()
|
||||
appReleaseConfigCache = newConfigCache[*types.AppRelease]()
|
||||
thirdPartyConfigAllKeys = "*"
|
||||
)
|
||||
|
||||
@@ -71,6 +72,11 @@ func cloneTenant(t *types.Tenant) *types.Tenant {
|
||||
return &cp
|
||||
}
|
||||
|
||||
// InvalidateAppReleaseConfigCache clears global client release policies.
|
||||
func InvalidateAppReleaseConfigCache() {
|
||||
appReleaseConfigCache.clear()
|
||||
}
|
||||
|
||||
func cloneStringMap(src map[string]string) map[string]string {
|
||||
if src == nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user