-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dask dashboard should have a separate log config
Signed-off-by: Andrew Dye <[email protected]>
- Loading branch information
1 parent
c127997
commit 5502468
Showing
4 changed files
with
351 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package dask | ||
|
||
import ( | ||
pluginsConfig "github.com/flyteorg/flyte/flyteplugins/go/tasks/config" | ||
"github.com/flyteorg/flyte/flyteplugins/go/tasks/logs" | ||
) | ||
|
||
//go:generate pflags Config --default-var=defaultConfig | ||
|
||
var ( | ||
defaultConfig = Config{ | ||
Logs: logs.DefaultConfig, | ||
} | ||
|
||
configSection = pluginsConfig.MustRegisterSubSection("dask", &defaultConfig) | ||
) | ||
|
||
// Config is config for 'dask' plugin | ||
type Config struct { | ||
Logs logs.LogConfig `json:"logs,omitempty"` | ||
} | ||
|
||
func GetConfig() *Config { | ||
return configSection.GetConfig().(*Config) | ||
} | ||
|
||
func SetConfig(cfg *Config) error { | ||
return configSection.SetConfig(cfg) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
256 changes: 256 additions & 0 deletions
256
flyteplugins/go/tasks/plugins/k8s/dask/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