-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: population of the schedulerhostaddress in self-hosted mode (#1475)
* fix: population of the schedulerhostaddress in self-hosted mode The scheduler host address is pre-populated when using the self-hosted mode multi-app run similarly to the single app run. Kubernetes multi-app run is not affected and you will still need to specify a scheduler host address. Signed-off-by: mikeee <[email protected]> * chore: lint Signed-off-by: mikeee <[email protected]> --------- Signed-off-by: mikeee <[email protected]> Co-authored-by: Yaron Schneider <[email protected]>
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cmd | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestValidateSchedulerHostAddress(t *testing.T) { | ||
t.Run("test scheduler host address - v1.14.0-rc.0", func(t *testing.T) { | ||
address := validateSchedulerHostAddress("1.14.0-rc.0", "") | ||
assert.Equal(t, "", address) | ||
}) | ||
|
||
t.Run("test scheduler host address - v1.15.0-rc.0", func(t *testing.T) { | ||
address := validateSchedulerHostAddress("1.15.0", "") | ||
assert.Equal(t, "localhost:50006", address) | ||
}) | ||
} |