From 2ff05f9b25172602cf0943ebb25447ac0edff76a Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Wed, 26 Jun 2024 13:58:21 +0800 Subject: [PATCH] cluster: make pd mode editable (#2431) --- pkg/cluster/spec/spec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/spec/spec.go b/pkg/cluster/spec/spec.go index f3400c9758..ffef492dda 100644 --- a/pkg/cluster/spec/spec.go +++ b/pkg/cluster/spec/spec.go @@ -101,7 +101,7 @@ type ( Arch string `yaml:"arch,omitempty"` Custom any `yaml:"custom,omitempty" validate:"custom:ignore"` SystemdMode SystemdMode `yaml:"systemd_mode,omitempty" default:"system"` - PDMode string `yaml:"pd_mode,omitempty"` + PDMode string `yaml:"pd_mode,omitempty" validate:"pd_mode:editable"` } // MonitoredOptions represents the monitored node configuration