-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add console endpoint config section and init arg (#361)
* Add console endpoint init arg and config section Signed-off-by: Andrew Dye <[email protected]> * Log invalid endpoint Signed-off-by: Andrew Dye <[email protected]> Signed-off-by: Andrew Dye <[email protected]>
- Loading branch information
1 parent
a64a416
commit e2ed562
Showing
11 changed files
with
280 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
flytectl/cmd/config/subcommand/config/config_flags_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,20 @@ | ||
package config | ||
|
||
import "github.com/flyteorg/flytestdlib/config" | ||
|
||
//go:generate pflags ConsoleConfig --default-var DefaultConsoleConfig --bind-default-var | ||
|
||
var ( | ||
DefaultConsoleConfig = &ConsoleConfig{} | ||
|
||
cfg = config.MustRegisterSection("console", DefaultConsoleConfig) | ||
) | ||
|
||
// FilesConfig containing flags used for registration | ||
type ConsoleConfig struct { | ||
Endpoint string `json:"endpoint" pflag:",Endpoint of console, if different than flyte admin"` | ||
} | ||
|
||
func GetConfig() *ConsoleConfig { | ||
return cfg.GetConfig().(*ConsoleConfig) | ||
} |
55 changes: 55 additions & 0 deletions
55
flytectl/cmd/config/subcommand/config/consoleconfig_flags.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
116 changes: 116 additions & 0 deletions
116
flytectl/cmd/config/subcommand/config/consoleconfig_flags_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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