X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/917c3ca20c36318578c4dfab7de076d97a2f87fe..f04693da1811e670d4cbb981debeecf14d79137c:/lib/config/export.go diff --git a/lib/config/export.go b/lib/config/export.go index b79dec4d9d..57f62fa835 100644 --- a/lib/config/export.go +++ b/lib/config/export.go @@ -26,6 +26,10 @@ func ExportJSON(w io.Writer, cluster *arvados.Cluster) error { if err != nil { return err } + + // ClusterID is not marshalled by default (see `json:"-"`). + // Add it back here so it is included in the exported config. + m["ClusterID"] = cluster.ClusterID err = redactUnsafe(m, "", "") if err != nil { return err @@ -55,15 +59,22 @@ func ExportJSON(w io.Writer, cluster *arvados.Cluster) error { // exists. var whitelist = map[string]bool{ // | sort -t'"' -k2,2 + "ClusterID": true, "API": true, "API.AsyncPermissionsUpdateInterval": false, "API.DisabledAPIs": false, + "API.MaxConcurrentRequests": false, "API.MaxIndexDatabaseRead": false, "API.MaxItemsPerResponse": true, + "API.MaxKeepBlockBuffers": false, "API.MaxRequestAmplification": false, "API.MaxRequestSize": true, "API.RailsSessionSecretToken": false, "API.RequestTimeout": true, + "API.WebsocketClientEventQueue": false, + "API.SendTimeout": true, + "API.WebsocketServerEventQueue": false, + "API.KeepServiceRequestTimeout": false, "AuditLogs": false, "AuditLogs.MaxAge": false, "AuditLogs.MaxDeleteBatch": false, @@ -72,6 +83,12 @@ var whitelist = map[string]bool{ "Collections.BlobSigning": true, "Collections.BlobSigningKey": false, "Collections.BlobSigningTTL": true, + "Collections.BlobTrash": false, + "Collections.BlobTrashLifetime": false, + "Collections.BlobTrashConcurrency": false, + "Collections.BlobTrashCheckInterval": false, + "Collections.BlobDeleteConcurrency": false, + "Collections.BlobReplicateConcurrency": false, "Collections.CollectionVersioning": false, "Collections.DefaultReplication": true, "Collections.DefaultTrashLifetime": true, @@ -81,26 +98,27 @@ var whitelist = map[string]bool{ "Collections.PreserveVersionIfIdle": true, "Collections.TrashSweepInterval": false, "Collections.TrustAllContent": false, + "Collections.WebDAVCache": false, "Containers": true, "Containers.CloudVMs": false, + "Containers.CrunchRunCommand": false, + "Containers.CrunchRunArgumentsList": false, "Containers.DefaultKeepCacheRAM": true, "Containers.DispatchPrivateKey": false, "Containers.JobsAPI": true, - "Containers.JobsAPI.CrunchJobUser": false, - "Containers.JobsAPI.CrunchJobWrapper": false, - "Containers.JobsAPI.CrunchRefreshTrigger": false, - "Containers.JobsAPI.DefaultDockerImage": false, "Containers.JobsAPI.Enable": true, "Containers.JobsAPI.GitInternalDir": false, - "Containers.JobsAPI.ReuseJobIfOutputsDiffer": false, "Containers.Logging": false, "Containers.LogReuseDecisions": false, "Containers.MaxComputeVMs": false, "Containers.MaxDispatchAttempts": false, "Containers.MaxRetryAttempts": true, + "Containers.MinRetryPeriod": true, + "Containers.ReserveExtraRAM": true, "Containers.SLURM": false, "Containers.StaleLockTimeout": false, "Containers.SupportedDockerImageFormats": true, + "Containers.SupportedDockerImageFormats.*": true, "Containers.UsePreemptibleInstances": true, "EnableBetaController14287": false, "Git": false, @@ -140,6 +158,16 @@ var whitelist = map[string]bool{ "Users.NewUsersAreActive": false, "Users.UserNotifierEmailFrom": false, "Users.UserProfileNotificationAddress": false, + "Volumes": true, + "Volumes.*": true, + "Volumes.*.*": false, + "Volumes.*.AccessViaHosts": true, + "Volumes.*.AccessViaHosts.*": true, + "Volumes.*.AccessViaHosts.*.ReadOnly": true, + "Volumes.*.ReadOnly": true, + "Volumes.*.Replication": true, + "Volumes.*.StorageClasses": true, + "Volumes.*.StorageClasses.*": false, "Workbench": true, "Workbench.ActivationContactLink": false, "Workbench.APIClientConnectTimeout": true,