-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/confirmation delete apply (#15)
* Added user confirmation for korgi delete/delete-namespace in form [y/n] * Added new boolean field FlagYes to kapp opt. struct; Updated all kapp.go in order to add -y flag to kapp pars in case the FlagYes is true; Added global app flag asking-for-confirmation with default value true; Changed the field name in struct exec.Opts to be more descriptive; Added shorthand for the flag asking-for-confirmation; Added ExecWithStdInOut in exec.go with raw stardart in/out/err; Optimized the repeating code in kapp.go; Adding logging on the new flag asking-for-confirmation in apply.go and applyNamespace.go; Added asking explicit for user confirmation in delete/deleteNamespace if the flag asking-for-confirmation(short c) is set to false; Changed vars to be consistent - askUserToConfirm->asking-for-confirmation->AskUserToConfirmBeforeKappExec becomed askForConfirmation->ask-for-confirmation->AskForConfirmation * Added explicit confirmation asking for apply* in case the flag ask-for-confirmation(short c)=false Co-authored-by: Daniel Angelov <[email protected]>
- Loading branch information
1 parent
c40bb3f
commit 4621259
Showing
8 changed files
with
107 additions
and
59 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
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