From 6aef28dad2036bbb596a653e6e8a724b61bd4d15 Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Thu, 6 Feb 2020 10:33:23 +0000 Subject: [PATCH] Runtime set service source --- runtime/kubernetes/kubernetes.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/kubernetes/kubernetes.go b/runtime/kubernetes/kubernetes.go index 520ab78b..479ae967 100644 --- a/runtime/kubernetes/kubernetes.go +++ b/runtime/kubernetes/kubernetes.go @@ -270,8 +270,10 @@ func (k *kubernetes) Create(s *runtime.Service, opts ...runtime.CreateOption) er if len(options.Type) == 0 { options.Type = k.options.Type } + if len(k.options.Source) > 0 { + s.Source = k.options.Source + } - // create new kubernetes micro service service := newService(s, options) // start the service