Documentation
¶
Overview ¶
Package legacydo holds the read-only data and message formatters for the legacy DigitalOcean module + step types removed in issue #617. Lives in internal/ so that both module/ and modernize/ can import it without a cycle (module transitively imports modernize via plugin, so modernize cannot import module).
Index ¶
Constants ¶
const RemovedInVersion = "v0.52.0"
RemovedInVersion is the workflow tag that ships issue #617's force-cutover. Used in every legacy-DO migration error and in the wfctl modernize rule. Update both this constant and the docs/migrations/v<X>-godo-removal.md filename when the release tag is finalised.
Variables ¶
var ModuleTypes = map[string]string{
"platform.do_app": "infra.container_service",
"platform.do_database": "infra.database",
"platform.do_dns": "infra.dns",
"platform.do_networking": "infra.vpc + infra.firewall",
"platform.doks": "infra.k8s_cluster",
}
ModuleTypes maps each removed legacy DigitalOcean module type to its infra.* IaC successor (issue #617).
var StepTypes = map[string]string{
"step.do_deploy": "step.iac_apply (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.do_status": "step.iac_status (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.do_destroy": "step.iac_destroy (against an infra.container_service module); required config keys: platform (iac.provider service name) + state_store (IaC state backend module name)",
"step.do_logs": "no direct pipeline-step equivalent; use `wfctl infra logs` ad-hoc, or rely on the DO plugin's Troubleshoot hook on step.iac_apply failure",
"step.do_scale": "no direct pipeline-step equivalent; update instance_count in the infra.container_service module config and re-run step.iac_apply",
}
StepTypes maps each removed legacy DigitalOcean step type to its successor or to a workaround when no 1:1 successor exists.
Functions ¶
func FormatModuleError ¶
FormatModuleError builds the actionable migration error for a legacy DO module type. iacProviderLoaded indicates whether the iac.provider factory is registered in the engine — used to branch between the "install plugin" and "config-only issue" messages.
func FormatStepError ¶
FormatStepError builds the actionable migration error for a legacy DO step type.
func IsModuleType ¶
IsModuleType reports whether t is a removed legacy DO module type.
func IsStepType ¶
IsStepType reports whether t is a removed legacy DO step type.
Types ¶
This section is empty.