Add default startup options

Signed-off-by: Tim Hansen <timbonicush@spotify.com>
This commit is contained in:
Tim Hansen
2025-02-07 13:57:07 -07:00
parent 5622362b3e
commit c5b6f34ec7
5 changed files with 123 additions and 25 deletions
+22 -3
View File
@@ -14,8 +14,6 @@
* limitations under the License.
*/
import { BackendStartupOptions } from './src';
export interface Config {
backend?: {
/** Used by the feature discovery service */
@@ -26,6 +24,27 @@ export interface Config {
exclude?: string[];
};
startup?: BackendStartupOptions;
startup?: {
default?: {
/**
* The default value for `optional` if not specified for a particular plugin. This defaults to
* false, which means `optional: true` must be specified for individual plugins to be considered
* optional. This can also be set to true, which flips the logic for individual plugins so that
* they must be set to `optional: false` to be required.
*/
optional?: boolean;
};
plugins?: {
[pluginId: string]: {
/**
* Used to mark plugins as optional, which allows the backend to start up even in the event
* of a plugin failure. Plugin failures without this configuration are fatal. This can
* enable leaving a crashing plugin installed, but still permit backend startup, which may
* help troubleshoot data-dependent issues.
*/
optional?: boolean;
};
};
};
};
}