-
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.
===================================================================== --- Changes ------------------------------ - kubectl driver updates; getting better, but still need to fix autocomplete in certain circumstances - added -y|--yes flags to scwrypts to auto-accept user-prompts (use with caution) - figured out the whole mikefarah/yq vs kislyuk/yq thing; use YQ for compatiblity --- Bug fixes ---------------------------- - helm template generation now loads values in a more appropriate order which prevents overwrite by the wrong values file
- Loading branch information
Showing
14 changed files
with
354 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/zsh | ||
##################################################################### | ||
DEPENDENCIES+=() | ||
REQUIRED_ENV+=() | ||
|
||
use kubectl --group kubectl | ||
|
||
CHECK_ENVIRONMENT | ||
##################################################################### | ||
|
||
MAIN() { | ||
local USAGE=" | ||
usage: [service] [...options...] | ||
args: | ||
service (optional) name of the service to forward locally | ||
options: | ||
--context override context | ||
--namespace override namespace | ||
--subsession REDIS subsession (default 0) | ||
to show a required password on screen, use both: | ||
--password-secret Secret resource | ||
--password-key key within Secret's 'data' | ||
-h, --help show this dialogue and exit | ||
" | ||
local CONTEXT NAMESPACE SERVICE | ||
local SUBSESSION=0 | ||
|
||
while [[ $# -gt 0 ]] | ||
do | ||
case $1 in | ||
--context ) CONTEXT=$2; shift 1 ;; | ||
--namespace ) NAMESPACE=$2; shift 1 ;; | ||
--subsession ) SUBSESSION=$2; shift 1 ;; | ||
|
||
--password-secret ) PASSWORD_SECRET=$2; shift 1 ;; | ||
--password-key ) PASSWORD_KEY=$2; shift 1 ;; | ||
|
||
-h | --help ) USAGE; return 0 ;; | ||
|
||
* ) | ||
[ $SERVICE ] && ERROR "unexpected argument '$2'" | ||
SERVICE=$1 | ||
;; | ||
esac | ||
shift 1 | ||
done | ||
|
||
CHECK_ERRORS | ||
|
||
KUBECTL__SERVE | ||
} | ||
|
||
##################################################################### | ||
MAIN $@ |
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
Oops, something went wrong.