Runtime set service source
This commit is contained in:
parent
f0762bbb6b
commit
6aef28dad2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user