This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Print instruction after teardown #403
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -72,8 +72,14 @@ func SetupFlyteDir() error { | |
return nil | ||
} | ||
|
||
// PrintDemoMessage will print sandbox success message | ||
// PrintDemoMessage will print demo start success message | ||
// Deprecated: use PrintDemoStartMessage | ||
func PrintDemoMessage(flyteConsolePort int, kubeconfigLocation string, dryRun bool) { | ||
PrintDemoStartMessage(flyteConsolePort, kubeconfigLocation, dryRun) | ||
} | ||
|
||
// PrintDemoStartMessage will print demo start success message | ||
func PrintDemoStartMessage(flyteConsolePort int, kubeconfigLocation string, dryRun bool) { | ||
kubeconfig := strings.Join([]string{ | ||
"$KUBECONFIG", | ||
kubeconfigLocation, | ||
|
@@ -84,10 +90,9 @@ func PrintDemoMessage(flyteConsolePort int, kubeconfigLocation string, dryRun bo | |
successMsg = fmt.Sprintf("%v http://localhost:%v/console", ProgressSuccessMessagePending, flyteConsolePort) | ||
} else { | ||
successMsg = fmt.Sprintf("%v http://localhost:%v/console", ProgressSuccessMessage, flyteConsolePort) | ||
|
||
} | ||
fmt.Printf("%v %v %v %v %v \n", emoji.ManTechnologist, successMsg, emoji.Rocket, emoji.Rocket, emoji.PartyPopper) | ||
fmt.Printf("%v Run the following command to export sandbox environment variables for accessing flytectl\n", emoji.Sparkle) | ||
fmt.Printf("%v Run the following command to export demo environment variables for accessing flytectl\n", emoji.Sparkle) | ||
fmt.Printf(" export FLYTECTL_CONFIG=%v \n", configutil.FlytectlConfig) | ||
if dryRun { | ||
fmt.Printf("%v Run the following command to export kubeconfig variables for accessing flyte pods locally\n", emoji.Sparkle) | ||
|
@@ -97,8 +102,14 @@ func PrintDemoMessage(flyteConsolePort int, kubeconfigLocation string, dryRun bo | |
fmt.Printf("%s The Minio API is hosted on localhost:30002. Use http://localhost:30080/minio/login for Minio console\n", emoji.OpenFileFolder) | ||
} | ||
|
||
// PrintSandboxMessage will print sandbox success message | ||
// PrintSandboxMessage will print sandbox start success message | ||
// Deprecated: use PrintSandboxStartMessage | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
func PrintSandboxMessage(flyteConsolePort int, kubeconfigLocation string, dryRun bool) { | ||
PrintSandboxStartMessage(flyteConsolePort, kubeconfigLocation, dryRun) | ||
} | ||
|
||
// PrintSandboxStartMessage will print sandbox start success message | ||
func PrintSandboxStartMessage(flyteConsolePort int, kubeconfigLocation string, dryRun bool) { | ||
kubeconfig := strings.Join([]string{ | ||
"$KUBECONFIG", | ||
kubeconfigLocation, | ||
|
@@ -109,7 +120,6 @@ func PrintSandboxMessage(flyteConsolePort int, kubeconfigLocation string, dryRun | |
successMsg = fmt.Sprintf("%v http://localhost:%v/console", ProgressSuccessMessagePending, flyteConsolePort) | ||
} else { | ||
successMsg = fmt.Sprintf("%v http://localhost:%v/console", ProgressSuccessMessage, flyteConsolePort) | ||
|
||
} | ||
fmt.Printf("%v %v %v %v %v \n", emoji.ManTechnologist, successMsg, emoji.Rocket, emoji.Rocket, emoji.PartyPopper) | ||
fmt.Printf("%v Run the following command to export sandbox environment variables for accessing flytectl\n", emoji.Sparkle) | ||
|
@@ -120,6 +130,12 @@ func PrintSandboxMessage(flyteConsolePort int, kubeconfigLocation string, dryRun | |
} | ||
} | ||
|
||
// PrintSandboxTeardownMessage will print sandbox teardown success message | ||
func PrintSandboxTeardownMessage(flyteConsolePort int, kubeconfigLocation string) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems we don't need an equivalent for |
||
fmt.Printf("%v Run the following command to unset sandbox environment variables for accessing flytectl\n", emoji.Sparkle) | ||
fmt.Printf(" unset FLYTECTL_CONFIG \n") | ||
} | ||
|
||
// SendRequest will create request and return the response | ||
func SendRequest(method, url string, option io.Reader) (*http.Response, error) { | ||
client := &http.Client{} | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are confident this is not used by any potential users, it is fine to delete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt that there's someone out there importing this. It's fine to delete.