From dcf859098bc12c626d0099e9bf5787e0cf30019f Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Tue, 25 Feb 2020 11:39:03 +0000 Subject: [PATCH] Fix k8s commands for github (#1257) --- runtime/kubernetes/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/kubernetes/service.go b/runtime/kubernetes/service.go index 72fcc636..7a761437 100644 --- a/runtime/kubernetes/service.go +++ b/runtime/kubernetes/service.go @@ -70,7 +70,7 @@ func newService(s *runtime.Service, c runtime.CreateOptions) *service { } // specify the command to exec - if len(c.Command) > 0 { + if strings.HasPrefix(c.Source, "github.com") && len(c.Command) > 0 { kdeploy.Spec.Template.PodSpec.Containers[0].Command = c.Command }