Merge pull request #3744 from gravitl/NM-167

NM-167: Auto delete Offline Nodes
This commit is contained in:
Abhishek Kondur
2025-12-05 09:52:53 +04:00
committed by GitHub
parent 94922b056e
commit 94f3716fdf
20 changed files with 312 additions and 81 deletions
+7
View File
@@ -84,6 +84,10 @@ func updateNetworks() {
netI.AutoJoin = "true"
logic.UpsertNetwork(netI)
}
if netI.AutoRemove == "" {
netI.AutoRemove = "false"
logic.UpsertNetwork(netI)
}
}
}
@@ -887,6 +891,9 @@ func migrateSettings() {
if settings.PeerConnectionCheckInterval == "" {
settings.PeerConnectionCheckInterval = "15"
}
if settings.CleanUpInterval == 0 {
settings.CleanUpInterval = 60
}
if settings.AuditLogsRetentionPeriodInDays == 0 {
settings.AuditLogsRetentionPeriodInDays = 7
}