/** * A deployment can define a "scale" field that defines how many instances of a component or * service roles should be deployed. At the same time, the component or service artifact can also define a "scale" * field that specifies the default scale for that artifact or to actually force a specific scale, * not allowing external overrides (from a deployment). * * This validation checks that if a deployment defines a "scale" field, it does not conflict with * the "scale" field defined in the artifact (or in each service role), if any. * "Conflict" for now means that the number defined in the deployment must be the same as the one defined in the artifact. */ import { DeploymentArtifact } from "../../../language/generated/ast.js"; import { ValidationAcceptor } from "langium"; import { ValidationContext } from "../../../language/validations/_shared.js"; declare const _default: () => (readonly ["DeploymentArtifact", typeof ScaleConflicting])[]; export default _default; declare function ScaleConflicting(context: ValidationContext): (node: DeploymentArtifact, accept: ValidationAcceptor) => void;