App platform: Add cleanup job for dashboards when going through /apis (kubectl) (#102506)
* Add dashboard cleanup job Change log message Adjust logic to account for new head RV logic Don't update lastResourceVersion due to pagination Save improvements * Address review feedback * Update docs. * Remove docs * Rename config --------- Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com>
This commit is contained in:
co-authored by
Marco de Abreu
parent
c661077651
commit
543c0bbccb
@@ -181,6 +181,9 @@ type Cfg struct {
|
||||
DataProxyWhiteList map[string]bool
|
||||
ActionsAllowPostURL string
|
||||
|
||||
// K8s Dashboard Cleanup
|
||||
K8sDashboardCleanup K8sDashboardCleanupSettings
|
||||
|
||||
TempDataLifetime time.Duration
|
||||
|
||||
// Plugins
|
||||
@@ -1291,6 +1294,7 @@ func (cfg *Cfg) parseINIFile(iniFile *ini.File) error {
|
||||
|
||||
cfg.readDataSourcesSettings()
|
||||
cfg.readDataSourceSecuritySettings()
|
||||
cfg.readK8sDashboardCleanupSettings()
|
||||
cfg.readSqlDataSourceSettings()
|
||||
|
||||
cfg.Storage = readStorageSettings(iniFile)
|
||||
|
||||
Reference in New Issue
Block a user