chore: update

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
TakahashiNg
2026-04-29 02:35:15 +00:00
parent c593d88103
commit 5de3ad1a1c
10 changed files with 38 additions and 10 deletions
@@ -27,13 +27,9 @@ public class EateryController {
);
if (response.hasError()) {
List<String> errorMessages = response
.getErrors()
.stream()
.map(GraphQLError::getMessage)
.collect(Collectors.toList());
return Response.status(400).entity(errorMessages).build();
return Response.status(400)
.entity(response.getErrors().toString())
.build();
}
return jakarta.ws.rs.core.Response.ok(
+7
View File
@@ -0,0 +1,7 @@
resources:
- account.yaml
- eatery.yaml
- gateway.yaml
- redis.yaml
- kafdrop.yaml
- kafka.yaml
+10
View File
@@ -0,0 +1,10 @@
resources:
- ../base
patches:
- target:
kind: Deployment
patch: |
- op: add
path: /spec/template/spec/containers/0/resources
value: {}
+17 -2
View File
@@ -5,7 +5,22 @@ SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
cd "$SCRIPT_DIR/.."
kubectl delete all --all -n drinkool-backend
kubectl apply -f k8s -n drinkool-backend
TARGET="k8s/base"
for arg in "$@"; do
if [ "$arg" == "--dev" ]; then
TARGET="k8s/dev"
echo "🔧 Chế độ DEV: Đang chuẩn bị chạy Kustomize để dọn dẹp resources..."
break
fi
done
echo "🧹 Đang dọn dẹp namespace drinkool-backend..."
kubectl delete all --all -n drinkool-backend
echo "🚀 Đang triển khai bằng Kustomize (-k) từ: $TARGET"
kubectl apply -k "$TARGET" -n drinkool-backend
# Quay lại thư mục ban đầu
cd "$CURRENT_DIR"
echo "✅ Hoàn thành!"