Fix k8s commands for github (#1257)

This commit is contained in:
ben-toogood 2020-02-25 11:39:03 +00:00 committed by GitHub
parent b4a743898e
commit dcf859098b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ func newService(s *runtime.Service, c runtime.CreateOptions) *service {
} }
// specify the command to exec // 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 kdeploy.Spec.Template.PodSpec.Containers[0].Command = c.Command
} }