Skip to content

Commit

Permalink
fix(hatchery): lower case on service requirement name for kubernetes (#…
Browse files Browse the repository at this point in the history
…3247)

close #3241
Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
  • Loading branch information
bnjjj authored and yesnault committed Aug 22, 2018
1 parent 6f27de2 commit 016369c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/hatchery/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func (h *HatcheryKubernetes) SpawnWorker(ctx context.Context, spawnArgs hatchery
}
podSchema.ObjectMeta.Labels[LABEL_SERVICE_JOB_ID] = fmt.Sprintf("%d", spawnArgs.JobID)
podSchema.Spec.Containers = append(podSchema.Spec.Containers, servContainer)
podSchema.Spec.HostAliases[0].Hostnames[i+1] = serv.Name
podSchema.Spec.HostAliases[0].Hostnames[i+1] = strings.ToLower(serv.Name)
}

pod, err := h.k8sClient.CoreV1().Pods(h.Config.KubernetesNamespace).Create(&podSchema)
Expand Down

0 comments on commit 016369c

Please sign in to comment.