sourcegraph / sourcegraph/deploy-sourcegraph-helm
Executor Helm Chart - kubernetesJob.node.tolerations doesn't render as expected
Personne n'a encore pris cette issue.
- Langage dominant
- Go Template
- Étoiles
- 19
- Forks
- 24
- Merge moyen
- 1 j 4 h
- PR mergées (30 j)
- 13
Description
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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Examinez charts/sourcegraph-executor/k8s/templates/executor.ConfigMap.yaml à la ligne 26 ainsi que la valeur de tolerations dans charts/sourcegraph-executor/k8s/values.yaml autour des lignes 116-117. Générez le chart avec la valeur de tolerations documentée et comparez la sortie de la ConfigMap avec le JSON attendu par l’executor. Le travail est terminé lorsque la valeur de EXECUTOR_KUBERNETES_NODE_TOLERATIONS reste un JSON valide et que l’executor peut l’analyser.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- helm, kubernetes
- Domaine
- devops, infrastructure
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100