Merge pull request #1149 from alrs/remove-unused-kubernetes-variable

runtime/kubernetes: remove unused name variable
This commit is contained in:
Asim Aslam 2020-01-30 17:30:43 +00:00 committed by GitHub
commit bafedf1aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)