You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!/^[A-Za-z0-9][A-Za-z0-9_.-]*$/.test(service.id))addIssue("invalid-runtime-service-id",`${path}.id`,"Runtime service ids must be stable identifiers.")
744
745
if(ids.has(service.id))addIssue("duplicate-runtime-service-id",`${path}.id`,`Runtime service ids must be unique: ${service.id}`)
745
746
ids.add(service.id)
746
747
if(!["mysql","redis","smtp","http"].includes(service.kind))addIssue("unsupported-runtime-service-kind",`${path}.kind`,`Unsupported managed runtime service kind: ${service.kind}`)
748
+
if(service.configuration?.provider==="external"){
749
+
if(service.kind!=="mysql")addIssue("unsupported-runtime-service-provider",`${path}.configuration.provider`,"The external provider supports only MySQL-compatible services.")
if(name&&exposedEnvironment.has(name))addIssue("runtime-service-admin-env-exposed",`${path}.configuration.${field}`,`External service administration environment must remain host-only: ${name}`)
if(service.configuration[field]!==undefined)addIssue("unsupported-external-runtime-service-option",`${path}.configuration.${field}`,`External MySQL services do not support ${field}.`)
0 commit comments