From 81ae3d9320e3dc5cc442999733d154007aea81a0 Mon Sep 17 00:00:00 2001 From: nexustar Date: Wed, 15 Nov 2023 15:25:40 +0800 Subject: [PATCH] fix --- pkg/cluster/spec/spec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cluster/spec/spec.go b/pkg/cluster/spec/spec.go index 7e5d4f7827..bbf586d61e 100644 --- a/pkg/cluster/spec/spec.go +++ b/pkg/cluster/spec/spec.go @@ -601,12 +601,13 @@ var ( monitorOptionTypeName = reflect.TypeOf(MonitoredOptions{}).Name() serverConfigsTypeName = reflect.TypeOf(ServerConfigs{}).Name() componentVersionsTypeName = reflect.TypeOf(ComponentVersions{}).Name() + componentSourcesTypeName = reflect.TypeOf(ComponentSources{}).Name() ) // Skip global/monitored options func isSkipField(field reflect.Value) bool { tp := field.Type().Name() - return tp == globalOptionTypeName || tp == monitorOptionTypeName || tp == serverConfigsTypeName || tp == componentVersionsTypeName + return tp == globalOptionTypeName || tp == monitorOptionTypeName || tp == serverConfigsTypeName || tp == componentVersionsTypeName || tp == componentSourcesTypeName } func setDefaultDir(parent, role, port string, field reflect.Value) {