mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
Merge pull request #1149 from alrs/remove-unused-kubernetes-variable
runtime/kubernetes: remove unused name variable
This commit is contained in:
commit
bafedf1aad
@ -271,12 +271,6 @@ func (k *kubernetes) Create(s *runtime.Service, opts ...runtime.CreateOption) er
|
|||||||
options.Type = k.options.Type
|
options.Type = k.options.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
// quickly prevalidate the name and version
|
|
||||||
name := s.Name
|
|
||||||
if len(s.Version) > 0 {
|
|
||||||
name = name + "-" + s.Version
|
|
||||||
}
|
|
||||||
|
|
||||||
// create new kubernetes micro service
|
// create new kubernetes micro service
|
||||||
service := newService(s, options)
|
service := newService(s, options)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user