Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: not in operator in deployment config (#12735)

ecmadao02deca2e0161
diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.go
index 5337f88929..4994716f14 100644
--- a/backend/api/v1/project_service.go
+++ b/backend/api/v1/project_service.go
@@ -1300,7 +1300,7 @@ func validateAndConvertToStoreDeploymentSchedule(deployment *v1pb.DeploymentConf
return nil, common.Errorf(common.Invalid, "label selector expression must not be empty")
}
switch e.Operator {
- case v1pb.OperatorType_OPERATOR_TYPE_IN:
+ case v1pb.OperatorType_OPERATOR_TYPE_IN, v1pb.OperatorType_OPERATOR_TYPE_NOT_IN:
if len(e.Values) == 0 {
return nil, common.Errorf(common.Invalid, "expression key %q with %q operator should have at least one value", e.Key, e.Operator)
}