Runtime set service source

This commit is contained in:
Ben Toogood 2020-02-06 10:33:23 +00:00
parent f0762bbb6b
commit 6aef28dad2

View File

@ -270,8 +270,10 @@ func (k *kubernetes) Create(s *runtime.Service, opts ...runtime.CreateOption) er
if len(options.Type) == 0 { if len(options.Type) == 0 {
options.Type = k.options.Type 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) service := newService(s, options)
// start the service // start the service