1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-10 21:52:01 +02:00
* Add String to Runtime interface

* Setup Dynamic Runtime Configuration
This commit is contained in:
ben-toogood
2020-02-05 13:59:35 +00:00
committed by GitHub
parent 4333f00a43
commit bf747a86f4
7 changed files with 50 additions and 1 deletions

View File

@@ -2,7 +2,9 @@
package kubernetes
import (
"errors"
"fmt"
"strings"
"sync"
"time"
@@ -245,6 +247,10 @@ func (k *kubernetes) Init(opts ...runtime.Option) error {
o(&k.options)
}
if strings.HasPrefix(k.options.Source, "github.com") {
return errors.New("invalid source provided to kubernetes runtime, expected docker image")
}
return nil
}