sourcegraph / sourcegraph/deploy-sourcegraph-helm

Executor Helm Chart - kubernetesJob.node.tolerations doesn't render as expected

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

Chưa có ai nhận issue này.

Ngôn ngữ chính
Go Template
Star
19
Fork
24
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
13

Mô tả

When setting the value for executor.kubernetesJob.node.tolerations it does not render in the configmap in the way that the executor pod is able to consume it.

I'm finding that if you set the following as the chart suggests:
tolerations: [{"key": "foo", "operator": "Equal", "value": "bar", "effect": "NoSchedule"}]
It will render as EXECUTOR_KUBERNETES_NODE_TOLERATIONS: map[effect:NoSchedule key:foo operator:Equal value:bar]
Causing your executor pod to throw invalid EXECUTOR_KUBERNETES_NODE_TOLERATIONS, failed to parse: invalid character 'm' looking for beginning of value into the logs and does not execute jobs.

If you do a manual edit of the configmap back to the original Json specified in the chart, then the jobs executor and respect the tolerations.

https://github.com/sourcegraph/deploy-sourcegraph-helm/blob/main/charts/sourcegraph-executor/k8s/values.yaml#L116-L117

I think the chart is incorrectly trying to render the json to yaml, when it should remain as json.
https://github.com/sourcegraph/deploy-sourcegraph-helm/blob/main/charts/sourcegraph-executor/k8s/templates/executor.ConfigMap.yaml#L26

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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.

Hướng nghiên cứu

Kiểm tra charts/sourcegraph-executor/k8s/templates/executor.ConfigMap.yaml tại dòng 26 và giá trị tolerations trong charts/sourcegraph-executor/k8s/values.yaml quanh các dòng 116-117. Render chart với giá trị tolerations được ghi trong tài liệu và so sánh đầu ra của ConfigMap với JSON mà executor mong đợi. Hoàn tất khi giá trị EXECUTOR_KUBERNETES_NODE_TOLERATIONS vẫn là JSON hợp lệ và executor có thể phân tích giá trị đó.

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

Đánh giá

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

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.