Dynamic Runtime source for k8s with github packages (#1252)
* Dynamic Runtime source for k8s * Still check for source * Replace / with - for k8s service names * Simplify sourceForName function
This commit is contained in:
@@ -35,6 +35,11 @@ func (s *svc) Create(svc *runtime.Service, opts ...runtime.CreateOption) error {
|
||||
o(&options)
|
||||
}
|
||||
|
||||
// set the default source from MICRO_RUNTIME_SOURCE
|
||||
if len(svc.Source) == 0 {
|
||||
svc.Source = s.options.Source
|
||||
}
|
||||
|
||||
// runtime service create request
|
||||
req := &pb.CreateRequest{
|
||||
Service: &pb.Service{
|
||||
|
Reference in New Issue
Block a user