diff --git a/runtime/kubernetes/kubernetes.go b/runtime/kubernetes/kubernetes.go index 00e7846a..520ab78b 100644 --- a/runtime/kubernetes/kubernetes.go +++ b/runtime/kubernetes/kubernetes.go @@ -327,8 +327,7 @@ func (k *kubernetes) List() ([]*runtime.Service, error) { func (k *kubernetes) Update(s *runtime.Service) error { // create new kubernetes micro service service := newService(s, runtime.CreateOptions{ - Type: k.options.Type, - Source: k.options.Source, + Type: k.options.Type, }) // update build time annotation @@ -344,8 +343,7 @@ func (k *kubernetes) Delete(s *runtime.Service) error { // create new kubernetes micro service service := newService(s, runtime.CreateOptions{ - Type: k.options.Type, - Source: k.options.Source, + Type: k.options.Type, }) return service.Stop(k.client) diff --git a/runtime/kubernetes/service.go b/runtime/kubernetes/service.go index 4548e216..2b0287e7 100644 --- a/runtime/kubernetes/service.go +++ b/runtime/kubernetes/service.go @@ -71,9 +71,6 @@ func newService(s *runtime.Service, c runtime.CreateOptions) *service { // specify the command to exec if len(c.Command) > 0 { kdeploy.Spec.Template.PodSpec.Containers[0].Command = c.Command - } else if len(s.Source) > 0 { - // default command for our k8s service should be source - kdeploy.Spec.Template.PodSpec.Containers[0].Command = []string{"go", "run", s.Source} } return &service{ diff --git a/runtime/options.go b/runtime/options.go index 8a29cf30..d8011aa2 100644 --- a/runtime/options.go +++ b/runtime/options.go @@ -51,8 +51,6 @@ type CreateOptions struct { Output io.Writer // Type of service to create Type string - // Source of the code - Source string } // ReadOptions queries runtime services