Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: default to REDIS_TYPE_UNSPECIFIED for non-Redis data sources (#19707)
Vincent Huange9e443e4dd01
diff --git a/backend/api/v1/instance_service_converter.go b/backend/api/v1/instance_service_converter.goindex c580da820a..bda5c044b3 100644--- a/backend/api/v1/instance_service_converter.go+++ b/backend/api/v1/instance_service_converter.go@@ -436,17 +436,16 @@ func convertV1RedisType(redisType v1pb.DataSource_RedisType) storepb.DataSource_}func convertRedisType(redisType storepb.DataSource_RedisType) v1pb.DataSource_RedisType {- authenticationType := v1pb.DataSource_STANDALONEswitch redisType {case storepb.DataSource_STANDALONE:- authenticationType = v1pb.DataSource_STANDALONE+ return v1pb.DataSource_STANDALONEcase storepb.DataSource_SENTINEL:- authenticationType = v1pb.DataSource_SENTINEL+ return v1pb.DataSource_SENTINELcase storepb.DataSource_CLUSTER:- authenticationType = v1pb.DataSource_CLUSTER+ return v1pb.DataSource_CLUSTERdefault:+ return v1pb.DataSource_REDIS_TYPE_UNSPECIFIED}- return authenticationType}func convertV1DataSource(dataSource *v1pb.DataSource) (*storepb.DataSource, error) {