mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-23 03:18:09 +08:00
feat(ql3): fence cluster deployment transitions
This commit is contained in:
@@ -8,6 +8,9 @@ import {
|
||||
type LocalComposeReleaseSelectionInput,
|
||||
type ResolvedLocalComposeReleaseSelection,
|
||||
} from '../compose/releaseSelection';
|
||||
import { LocalDeploymentConfigurationError } from './error';
|
||||
|
||||
export { LocalDeploymentConfigurationError } from './error';
|
||||
|
||||
const MAX_PATH_BYTES = 4_096;
|
||||
const SAFE_PATH_PATTERN = /^\/[A-Za-z0-9._/@-]+$/;
|
||||
@@ -364,15 +367,6 @@ export interface LocalDeploymentComposeEvidenceCollectionResult {
|
||||
}>;
|
||||
}
|
||||
|
||||
export class LocalDeploymentConfigurationError extends TypeError {
|
||||
readonly code = 'QL3_LOCAL_DEPLOYMENT_CONFIGURATION_INVALID';
|
||||
|
||||
constructor(message: string, options?: ErrorOptions) {
|
||||
super(`Local deployment configuration is invalid: ${message}`, options);
|
||||
this.name = 'LocalDeploymentConfigurationError';
|
||||
}
|
||||
}
|
||||
|
||||
function object(value: unknown, label: string): Record<string, unknown> {
|
||||
if (
|
||||
!value ||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
export class LocalDeploymentConfigurationError extends TypeError {
|
||||
readonly code = 'QL3_LOCAL_DEPLOYMENT_CONFIGURATION_INVALID';
|
||||
|
||||
constructor(message: string, options?: ErrorOptions) {
|
||||
super(`Local deployment configuration is invalid: ${message}`, options);
|
||||
this.name = 'LocalDeploymentConfigurationError';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user