diff --git a/seaweed-block/core/launcher/k8s_renderer.go b/seaweed-block/core/launcher/k8s_renderer.go index 7ce916f4c2..90f557f211 100644 --- a/seaweed-block/core/launcher/k8s_renderer.go +++ b/seaweed-block/core/launcher/k8s_renderer.go @@ -8,6 +8,7 @@ import ( "strings" "github.com/seaweedfs/seaweed-block/core/frontend/chunkstore/layout" + "github.com/seaweedfs/seaweed-block/core/frontend/durable" "github.com/seaweedfs/seaweed-block/core/lifecycle" "gopkg.in/yaml.v3" ) @@ -63,10 +64,12 @@ func RenderBlockVolumeDeployments(plan lifecycle.BlockVolumeWorkloadPlan, cfg K8 if cfg.DurableImpl == "" { cfg.DurableImpl = "walstore" } + // the removed experimental engines are refused typed, exactly as the provider and blockvolume refuse them + if err := durable.RemovedEngineName(cfg.DurableImpl); err != nil { + return nil, fmt.Errorf("launcher: %w", err) + } switch cfg.DurableImpl { case "walstore": - case "smartwal", "parallel-walstore": - return nil, fmt.Errorf("launcher: durable impl %q is a removed experimental engine; a volume it created by a removed experimental engine; copy the data to a walstore volume with v1.0.x first", cfg.DurableImpl) default: return nil, fmt.Errorf("launcher: durable impl %q invalid; want walstore", cfg.DurableImpl) }