forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added source flags in sandbox (flyteorg#99)
* added flags in sandbox Signed-off-by: Yuvraj <code@evalsocket.dev> * Set false debug defualt value Signed-off-by: Yuvraj <code@evalsocket.dev> * Remove debug flag Signed-off-by: Yuvraj <code@evalsocket.dev> * changes sandbox config name Signed-off-by: Yuvraj <code@evalsocket.dev> * Added test Signed-off-by: Yuvraj <code@evalsocket.dev> * Update sandbox logic to not overright user config Signed-off-by: Yuvraj <code@evalsocket.dev> * Added more unit test for sandbox Signed-off-by: Yuvraj <code@evalsocket.dev> * more unit test added Signed-off-by: Yuvraj <code@evalsocket.dev> * fixed unit test Signed-off-by: Yuvraj <code@evalsocket.dev> * more unit test Signed-off-by: Yuvraj <code@evalsocket.dev> * more unit test fix Signed-off-by: Yuvraj <code@evalsocket.dev> * more unit test fix Signed-off-by: Yuvraj <code@evalsocket.dev> * added more unit test Signed-off-by: Yuvraj <code@evalsocket.dev> * more changes Signed-off-by: Yuvraj <code@evalsocket.dev>
- Loading branch information
Showing
9 changed files
with
321 additions
and
90 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
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/sandbox/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,11 @@ | ||
package sandbox | ||
|
||
//go:generate pflags Config --default-var DefaultConfig | ||
var ( | ||
DefaultConfig = &Config{} | ||
) | ||
|
||
// Config | ||
type Config struct { | ||
SnacksRepo string `json:"flytesnacks" pflag:", Path of your flytesnacks repository"` | ||
} |
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
Oops, something went wrong.