(CommandList children: [ (C {(set)} {(-o)} {(errexit)}) (C {(set)} {(-o)} {(nounset)}) (C {(set)} {(-o)} {(pipefail)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KUBE_ROOT) op: Equal rhs: { (BracedVarSub token: <VSub_Name KUBE_ROOT> suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: { (CommandSubPart command_list: (CommandList children: [(C {(dirname)} {(DQ (${ VSub_Name BASH_SOURCE))})] ) left_token: <Left_CommandSub '$('> spids: [99 107] ) (Lit_Slash /) (..) } ) spids: [96 110] ) } spids: [95] ) ] spids: [95] ) (C {(source)} {(DQ (${ VSub_Name KUBE_ROOT) (/cluster/kube-util.sh))}) (C {(source)} {(DQ (${ VSub_Name KUBE_ROOT) (/cluster/clientbin.sh))}) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolUnary op_id: BoolUnary_z child: { (DQ (BracedVarSub token: <VSub_Name KUBECTL_PATH> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [144 147] ) ) } ) ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:kubectl) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(get_bin)} {(DQ (kubectl))} {(DQ (cmd/kubectl))})] ) left_token: <Left_CommandSub '$('> spids: [157 169] ) } spids: [156] ) ] spids: [156] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (LogicalNot child: (BoolUnary op_id:BoolUnary_x child:{(DQ ($ VSub_Name '$kubectl'))}) ) ) terminator: <Op_Semi ';'> ) ] action: [(C {(print_error)} {(DQ (kubectl))}) (C {(exit)} {(1)})] spids: [16777215 188] ) ] spids: [16777215 203] ) ] spids: [16777215 153] ) (if_arm cond: [ (Sentence child: (DBracket expr: (LogicalNot child: (BoolUnary op_id:BoolUnary_x child:{(DQ (${ VSub_Name KUBECTL_PATH))}) ) ) terminator: <Op_Semi ';'> ) ] action: [ (BraceGroup children: [ (C {(echo)} { (DQ ("KUBECTL_PATH environment variable set to '") (${ VSub_Name KUBECTL_PATH) ("', but ") ) } ) (C {(echo)} {(DQ ("this doesn't seem to be a valid executable."))}) ] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[248])] spids: [225] ) (C {(exit)} {(1)}) ] spids: [205 222] ) ] spids: [16777215 256] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:kubectl) op: Equal rhs: { (DQ (BracedVarSub token: <VSub_Name KUBECTL_PATH> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(${ VSub_Name kubectl)}) spids: [260 266] ) ) } spids: [258] ) ] spids: [258] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_Name '$KUBERNETES_PROVIDER'))} right: {(DQ (gke))} ) ) terminator: <Op_Semi ';'> ) ] action: [ (Sentence child:(C {(detect-project)}) terminator:<Op_Amp '&'>) (SimpleCommand redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(/dev/null)} spids:[293])] ) ] spids: [16777215 287] ) (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_Name '$KUBERNETES_PROVIDER'))} right: {(DQ (ubuntu))} ) ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(detect-master)}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(/dev/null)} spids:[319])] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:config) op: Equal rhs: { (ArrayLiteralPart words: [{(DQ ('--server=http://') (${ VSub_Name KUBE_MASTER_IP) (':8080'))}] ) } spids: [324] ) ] spids: [324] ) ] spids: [297 314] ) ] spids: [16777215 339] ) (If arms: [ (if_arm cond: [(Sentence child:(C {(false)}) terminator:<Op_Semi ';'>)] action: [ (SimpleCommand words: [ {(echo)} { (DQ ('current-context: ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (CommandSubPart command_list: (CommandList children: [ (C {(${ VSub_Name kubectl)} { (DQ (BracedVarSub token: <VSub_Name config> bracket_op: (WholeArray op_id:Lit_At) suffix_op: (StringUnary op_id: VTest_ColonPlus arg_word: { (BracedVarSub token: <VSub_Name config> bracket_op: (WholeArray op_id:Lit_At) spids: [372 377] ) } ) spids: [366 378] ) ) } {(config)} {(view)} {(-o)} {(template)} {(--template) (Lit_Other '=') (SQ <'{{index . "current-context"}}'>)} ) ] ) left_token: <Left_CommandSub '$('> spids: [360 394] ) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[398])] ) (SimpleCommand words: [ {(echo)} {(DQ ('Running:'))} {(DQ (${ VSub_Name kubectl))} { (DQ (BracedVarSub token: <VSub_Name config> bracket_op: (WholeArray op_id:Lit_At) suffix_op: (StringUnary op_id: VTest_ColonPlus arg_word: { (BracedVarSub token: <VSub_Name config> bracket_op: (WholeArray op_id:Lit_At) spids: [421 426] ) } ) spids: [415 427] ) ) } { (DQ (BracedVarSub token: <VSub_At '@'> suffix_op: (StringUnary op_id:VTest_Plus arg_word:{($ VSub_At '$@')}) spids: [431 435] ) ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[438])] ) ] spids: [16777215 348] ) ] spids: [16777215 441] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_EqualTilde left: { (DQ (BracedVarSub token: <VSub_Number 1> suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [449 452] ) ) } right: {(Lit_Other '^') ('(') (path) (')') (Lit_Other '$')} ) ) terminator: <Op_Semi ';'> ) ] action: [(C {(echo)} {(DQ (${ VSub_Name kubectl))}) (C {(exit)} {(0)})] spids: [16777215 466] ) ] spids: [16777215 482] ) (C {(DQ (${ VSub_Name kubectl))} { (DQ (BracedVarSub token: <VSub_Name config> bracket_op: (WholeArray op_id:Lit_At) suffix_op: (StringUnary op_id: VTest_ColonPlus arg_word: { (BracedVarSub token: <VSub_Name config> bracket_op: (WholeArray op_id:Lit_At) spids: [498 503] ) } ) spids: [492 504] ) ) } { (DQ (BracedVarSub token: <VSub_At '@'> suffix_op: (StringUnary op_id:VTest_Plus arg_word:{($ VSub_At '$@')}) spids: [508 512] ) ) } ) ] )