1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

Extract k8s run error

This commit is contained in:
Asim Aslam
2020-01-18 02:13:24 +00:00
parent 65df711b01
commit 39d7938405
3 changed files with 27 additions and 1 deletions

View File

@ -266,6 +266,11 @@ func (k *kubernetes) Create(s *runtime.Service, opts ...runtime.CreateOption) er
o(&options)
}
// hackish
if len(options.Type) == 0 {
options.Type = k.options.Type
}
// quickly prevalidate the name and version
name := s.Name
if len(s.Version) > 0 {