Remove dry-run and create-only autoscaling modes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { zombieMapBySlug, type ZombieGame } from './map-aliases.js';
|
||||
|
||||
export const autoscalingModes = ['off', 'dry-run', 'create-only', 'create-destroy'] as const;
|
||||
export const autoscalingModes = ['off', 'create-destroy'] as const;
|
||||
export type AutoscalingMode = typeof autoscalingModes[number];
|
||||
export interface ScalingSettings {
|
||||
game: ZombieGame;
|
||||
@@ -35,7 +35,7 @@ export interface ScalingView extends ScalingPreview {
|
||||
unsettled: { id: string; action: string; state: string; stage: string }[];
|
||||
}
|
||||
export interface ScalingReport { policies: ScalingView[]; globalPaused: boolean; liveAvailable: boolean; removalAvailable: boolean }
|
||||
export const liveScaling = (mode: AutoscalingMode): boolean => mode === 'create-only' || mode === 'create-destroy';
|
||||
export const liveScaling = (mode: AutoscalingMode): boolean => mode === 'create-destroy';
|
||||
|
||||
export function scalingSettings(input: unknown): ScalingSettings {
|
||||
if (!input || typeof input !== 'object' || Array.isArray(input)) throw new Error('Provide an autoscaling policy.');
|
||||
|
||||
Reference in New Issue
Block a user