{#if spec.commonExpositions.type == "INGRESS"} never matches, so the gRPC TLS properties are never rendered

Đang mở
#330 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@Abhayanthk đang làm issue này rồi.

Từ ngày 23/10/2026.

  • #331 của @Abhayanthk — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, kubernetes
Lĩnh vực
devops

Hướng nghiên cứu

Read MicrocksConfigMapDependentResource/application.properties around line 135 and the related conditions fixed in issue #306. Then inspect MicrocksConfigMapDependentResourceTest and add positive and negative cases for the default INGRESS type; done means both gRPC TLS properties appear for INGRESS and are absent for another type. The issue is unclaimed and has no linked pull request, but it follows work on #306.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the bug

In MicrocksConfigMapDependentResource/application.properties L135, the gRPC TLS properties are guarded by {#if spec.commonExpositions.type == "INGRESS"}. type is the ExpositionType enum, not a String, and in Qute an enum compared with a String literal is never equal. This is the same issue fixed for the Kafka authentication conditions in #306 (.type → .type.name). Since INGRESS is the default exposition type, this affects default installs.

Expected behavior

With commonExpositions.type: INGRESS, the generated application.properties contains grpc.server.certChainFilePath and grpc.server.privateKeyFilePath.

Actual behavior

The two lines are never rendered, whatever the exposition type.

How to Reproduce?

Render MicrocksConfigMapDependentResource.desired() with the default spec (commonExpositions.type: INGRESS) in a @QuarkusTest: neither line is present. With L135 changed to spec.commonExpositions.type.name == "INGRESS", both are rendered.

Microcks version or git rev

main @ 4d74e9f

Install method (docker-compose, helm chart, operator, docker-desktop extension,...)

operator

Additional information

Suggested fix: spec.commonExpositions.type.name == "INGRESS", plus a positive and a negative case in MicrocksConfigMapDependentResourceTest. As discussed in #306, I'm happy to send the PR.
AI disclosure: I used an AI assistant to help word this issue; I found the bug while working on #306 and checked it against main.

Ngôn ngữ chính
Java
Star
14
Fork
13
Merge trung bình
25 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microcks/microcks-operator

Tất cả issue của microcks/microcks-operator

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.