sourcegraph / sourcegraph/deploy-sourcegraph-helm
Executor Helm Chart - kubernetesJob.node.tolerations doesn't render as expected
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go Template
- Stelle
- 18
- Fork
- 24
- Merge medio
- 1g 4h
- PR unite (30g)
- 13
Descrizione
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.
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Ispeziona charts/sourcegraph-executor/k8s/templates/executor.ConfigMap.yaml alla riga 26 e il valore di tolerations in charts/sourcegraph-executor/k8s/values.yaml intorno alle righe 116-117. Esegui il rendering del chart con il valore di tolerations documentato e confronta l’output della ConfigMap con il JSON previsto dall’executor. Il lavoro è completato quando il valore di EXECUTOR_KUBERNETES_NODE_TOLERATIONS rimane un JSON valido e l’executor riesce ad analizzarlo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- helm, kubernetes
- Ambito
- devops, infrastructure
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 55/100