Use traefik and fix major problems with same-pods and cronjobs #185

Open
metal3d wants to merge 7 commits from feature/move-to-traefik into master
Showing only changes of commit dc7a8bc422 - Show all commits

View File

@@ -39,8 +39,8 @@ services:
t.Errorf("Expected image to be alpine, got %s", cronJob.Spec.JobTemplate.Spec.Template.Spec.Containers[0].Image) t.Errorf("Expected image to be alpine, got %s", cronJob.Spec.JobTemplate.Spec.Template.Spec.Containers[0].Image)
} }
combinedCommand := strings.Join(cronJob.Spec.JobTemplate.Spec.Template.Spec.Containers[0].Args, " ") combinedCommand := strings.Join(cronJob.Spec.JobTemplate.Spec.Template.Spec.Containers[0].Args, " ")
if combinedCommand != "echo hello" { if combinedCommand != `sh -c "echo hello"` {
t.Errorf("Expected command to be sh -c echo hello, got %s", combinedCommand) t.Errorf("Expected command to be sh -c \"echo hello\", got %s", combinedCommand)
} }
if cronJob.Spec.Schedule != "*/1 * * * *" { if cronJob.Spec.Schedule != "*/1 * * * *" {
t.Errorf("Expected schedule to be */1 * * * *, got %s", cronJob.Spec.Schedule) t.Errorf("Expected schedule to be */1 * * * *, got %s", cronJob.Spec.Schedule)