diff --git a/pkg/cli/cluster/charts/apecloud-mysql-cluster.tgz b/pkg/cli/cluster/charts/apecloud-mysql-cluster.tgz index 9ca88a2c247..b4f8ff71670 100644 Binary files a/pkg/cli/cluster/charts/apecloud-mysql-cluster.tgz and b/pkg/cli/cluster/charts/apecloud-mysql-cluster.tgz differ diff --git a/pkg/cli/cluster/charts/kafka-cluster.tgz b/pkg/cli/cluster/charts/kafka-cluster.tgz index a78eee3803a..98a362eec36 100644 Binary files a/pkg/cli/cluster/charts/kafka-cluster.tgz and b/pkg/cli/cluster/charts/kafka-cluster.tgz differ diff --git a/pkg/cli/cluster/charts/llm-cluster.tgz b/pkg/cli/cluster/charts/llm-cluster.tgz index fd49e3c7e59..02a2801bbd9 100644 Binary files a/pkg/cli/cluster/charts/llm-cluster.tgz and b/pkg/cli/cluster/charts/llm-cluster.tgz differ diff --git a/pkg/cli/cluster/charts/mongodb-cluster.tgz b/pkg/cli/cluster/charts/mongodb-cluster.tgz index d6602047340..89b82e72634 100644 Binary files a/pkg/cli/cluster/charts/mongodb-cluster.tgz and b/pkg/cli/cluster/charts/mongodb-cluster.tgz differ diff --git a/pkg/cli/cluster/charts/postgresql-cluster.tgz b/pkg/cli/cluster/charts/postgresql-cluster.tgz index 388f215c85a..d3cdb65e0a8 100644 Binary files a/pkg/cli/cluster/charts/postgresql-cluster.tgz and b/pkg/cli/cluster/charts/postgresql-cluster.tgz differ diff --git a/pkg/cli/cluster/charts/redis-cluster.tgz b/pkg/cli/cluster/charts/redis-cluster.tgz index 21a9ae7448b..31168c25903 100644 Binary files a/pkg/cli/cluster/charts/redis-cluster.tgz and b/pkg/cli/cluster/charts/redis-cluster.tgz differ diff --git a/pkg/cli/cluster/charts/xinference-cluster.tgz b/pkg/cli/cluster/charts/xinference-cluster.tgz index 5dcd801d140..03656e8fdf1 100644 Binary files a/pkg/cli/cluster/charts/xinference-cluster.tgz and b/pkg/cli/cluster/charts/xinference-cluster.tgz differ diff --git a/pkg/cli/cmd/cluster/config_observer.go b/pkg/cli/cmd/cluster/config_observer.go index 82c19a35679..f72b521a6f2 100644 --- a/pkg/cli/cmd/cluster/config_observer.go +++ b/pkg/cli/cmd/cluster/config_observer.go @@ -187,7 +187,10 @@ func (r *configObserverOptions) printExplainConfigure(configSpecs configSpecsTyp } schema.Schema = apiSchema } - return r.printConfigConstraint(schema.Schema, cfgutil.NewSet(confSpec.StaticParameters...), cfgutil.NewSet(confSpec.DynamicParameters...)) + return r.printConfigConstraint(schema.Schema, + cfgutil.NewSet(confSpec.StaticParameters...), + cfgutil.NewSet(confSpec.DynamicParameters...), + cfgutil.NewSet(confSpec.ImmutableParameters...)) } func (r *configObserverOptions) getReconfigureMeta(configSpecs configSpecsType) ([]types.ConfigTemplateInfo, error) { @@ -285,8 +288,7 @@ func (r *configObserverOptions) isSpecificParam(paramName string) bool { return r.paramName == paramName } -func (r *configObserverOptions) printConfigConstraint(schema *apiext.JSONSchemaProps, - staticParameters, dynamicParameters *cfgutil.Sets) error { +func (r *configObserverOptions) printConfigConstraint(schema *apiext.JSONSchemaProps, staticParameters, dynamicParameters, immutableParameters *cfgutil.Sets) error { var ( maxDocumentLength = 100 maxEnumLength = 20 @@ -307,7 +309,7 @@ func (r *configObserverOptions) printConfigConstraint(schema *apiext.JSONSchemaP return err } pt.scope = "Global" - pt.dynamic = isDynamicType(pt, staticParameters, dynamicParameters) + pt.dynamic = isDynamicType(pt, staticParameters, dynamicParameters, immutableParameters) if r.hasSpecificParam() { printSingleParameterSchema(pt) @@ -360,8 +362,10 @@ func getValidUpdatedParams(status appsv1alpha1.OpsRequestStatus) string { return string(b) } -func isDynamicType(pt *parameterSchema, staticParameters, dynamicParameters *cfgutil.Sets) bool { +func isDynamicType(pt *parameterSchema, staticParameters, dynamicParameters, immutableParameters *cfgutil.Sets) bool { switch { + case immutableParameters.InArray(pt.name): + return false case staticParameters.InArray(pt.name): return false case dynamicParameters.InArray(pt.name):