diff --git a/pkg/cluster/spec/cdc.go b/pkg/cluster/spec/cdc.go index 48e4aba499..6c53bb60e3 100644 --- a/pkg/cluster/spec/cdc.go +++ b/pkg/cluster/spec/cdc.go @@ -37,8 +37,8 @@ type CDCSpec struct { DeployDir string `yaml:"deploy_dir,omitempty"` LogDir string `yaml:"log_dir,omitempty"` Offline bool `yaml:"offline,omitempty"` - GCTTL int64 `yaml:"gc-ttl,omitempty"` - TZ string `yaml:"tz,omitempty"` + GCTTL int64 `yaml:"gc-ttl,omitempty" validate:"gc-ttl:editable"` + TZ string `yaml:"tz,omitempty" validate:"tz:editable"` NumaNode string `yaml:"numa_node,omitempty" validate:"numa_node:editable"` Config map[string]interface{} `yaml:"config,omitempty" validate:"config:ignore"` ResourceControl meta.ResourceControl `yaml:"resource_control,omitempty" validate:"resource_control:editable"`