Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#349 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
helm, kubernetes

調査の方向性

charts/sourcegraph-executor/k8s/templates/executor.ConfigMap.yaml の 26 行目と、charts/sourcegraph-executor/k8s/values.yaml の 116~117 行目付近にある tolerations の値を確認します。ドキュメントに記載された tolerations の値で chart をレンダリングし、ConfigMap の出力を executor が想定する JSON と比較します。EXECUTOR_KUBERNETES_NODE_TOLERATIONS の値が有効な JSON のままで、executor が解析できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Go Template
スター
19
フォーク
24
平均マージ
1日 4時間
マージ済み PR(30日)
13

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sourcegraph/deploy-sourcegraph-helm のほかの issue

sourcegraph/deploy-sourcegraph-helm の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。