mirror of https://github.com/dapr/cli.git
fix: allow the scheduler client to initialise for edge builds (#1467)
Signed-off-by: mikeee <hey@mike.ee>
This commit is contained in:
parent
25d9ece42f
commit
dbbe022a8a
|
@ -230,7 +230,7 @@ dapr run --run-file /path/to/directory -k
|
|||
output.DaprGRPCPort)
|
||||
}
|
||||
|
||||
if semver.Compare(fmt.Sprintf("v%v", daprVer.RuntimeVersion), "v1.14.0-rc.1") == -1 {
|
||||
if (daprVer.RuntimeVersion != "edge") && (semver.Compare(fmt.Sprintf("v%v", daprVer.RuntimeVersion), "v1.14.0-rc.1") == -1) {
|
||||
print.InfoStatusEvent(os.Stdout, "The scheduler is only compatible with dapr runtime 1.14 onwards.")
|
||||
for i, arg := range output.DaprCMD.Args {
|
||||
if strings.HasPrefix(arg, "--scheduler-host-address") {
|
||||
|
|
Loading…
Reference in New Issue