File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -227,3 +227,10 @@ editDeployment() {
227227 executeCommand " kubectl edit deployment $fname "
228228}
229229
230+ kubeContext () {
231+ echo " Current context: $( kubectl config current-context) "
232+ echo " Namespace: $( kubectl config view --minify -o jsonpath=' {..namespace}' ) "
233+ echo
234+ deplomentActualStatus
235+ }
236+
Original file line number Diff line number Diff line change 44# EasyKey.kubectl utility main script #
55# ######################################
66
7- kubeContext () {
8- echo " Current context: $( kubectl config current-context) "
9- echo " Namespace: $( kubectl config view --minify -o jsonpath=' {..namespace}' ) "
10- echo
11- deplomentActualStatus
12- }
13-
147script_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
158source " $script_dir /../shellmenu.sh"
169source " $script_dir /ezk-kubectl-functions.sh"
1710
18- menuInit " Super KUBECTL Home "
11+ menuInit " EasyKey.kubectl "
1912 submenuHead " Kubectl Config:" " Test:"
2013 menuItemClm a " Show config" " kubectl config view" b " Switch context" switchContext
2114 menuItemClm c " Switch namespace" switchNamespace d " Add cluster" addCluster
Original file line number Diff line number Diff line change @@ -631,8 +631,8 @@ draw_rounded_square() {
631631 formattedTop=$( tput setaf $clrWhite ) $( tput setab $clrBlue ) $( tput bold) $border $( tput sgr0)
632632 formattedMiddle=$( tput setaf $clrWhite ) $( tput setab $clrBlue ) $( tput bold) " $vertical_line " $( tput setaf $clrWhite ) $( tput setab $clrBlue ) $( tput bold) $text $( tput sgr0) $( tput setaf $clrWhite ) $( tput setab $clrBlue ) $( tput bold) " $vertical_line " $( tput sgr0)
633633
634- formattedheading+=$( printf ' %s' " $formattedTop \n\r " )
635- formattedheading+=$( printf ' %s' " $formattedMiddle \n\r " )
634+ formattedheading+=$( printf ' %s\n\r ' " $formattedTop " )
635+ formattedheading+=$( printf ' %s\n\r ' " $formattedMiddle " )
636636
637637 border=" $bottom_left_corner "
638638 for (( i= 0 ; i< width+ 2 ; i++ )) ; do
@@ -641,7 +641,7 @@ draw_rounded_square() {
641641 border+=" $bottom_right_corner "
642642
643643 formattedBottom=$( tput setaf $clrWhite ) $( tput setab $clrBlue ) $( tput bold) $border $( tput sgr0)
644- formattedheading+=$( printf ' %s' " $formattedBottom \n\r " )
644+ formattedheading+=$( printf ' %s\n\r ' " $formattedBottom " )
645645
646646 printf ' %s' " $formattedheading "
647647
You can’t perform that action at this time.
0 commit comments