(List (Com {[LIT_CHARS set]} {[LIT_CHARS -o]} {[LIT_CHARS errexit]} ) (Com {[LIT_CHARS set]} {[LIT_CHARS -o]} {[LIT_CHARS nounset]} ) (Com {[LIT_CHARS set]} {[LIT_CHARS -o]} {[LIT_CHARS pipefail]} ) (= scope= flags=0 words=[] bindings=[('KUBE_ROOT', {[VarSub KUBE_ROOT test_op=VS_TEST_COLON_HYPHEN {[ComSub (Com {[LIT_CHARS dirname]} {[DQ [VarSub BASH_SOURCE]]})] [LIT_SLASH /] [LIT_CHARS ..]}]})]) (Com {[LIT_CHARS source]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /cluster/kube-util.sh]]} ) (FunctionDef get_absolute_dirname [] (Com {[LIT_CHARS echo]} {[DQ [ComSub (AndOr OP_AND_IF (Com {[LIT_CHARS cd]} {[DQ [ComSub (Com {[LIT_CHARS dirname]} {[DQ [VarSub 1]]})]]}) (Com {[LIT_CHARS pwd]}) )]]} ) ) (Case to_match={[DQ [ComSub (Com {[LIT_CHARS uname]} {[LIT_CHARS -s]})]]}, pat_word_list=[[{[LIT_CHARS Darwin]}], [{[LIT_CHARS Linux]}], [{[LIT_OTHER "*"]}]] (= scope= flags=0 words=[] bindings=[('host_os', {[LIT_CHARS darwin]})]) (= scope= flags=0 words=[] bindings=[('host_os', {[LIT_CHARS linux]})]) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Unsupported host OS. Must be Linux or Mac OS X."]]} < (DescriptorRedirectNode target={[LIT_CHARS 2]} &"> 1), > ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) (Case to_match={[DQ [ComSub (Com {[LIT_CHARS uname]} {[LIT_CHARS -m]})]]}, pat_word_list=[[{[LIT_CHARS x86_64] [LIT_OTHER "*"]}], [{[LIT_CHARS i] [LIT_OTHER "?"] [LIT_CHARS 86_64] [LIT_OTHER "*"]}], [{[LIT_CHARS amd64] [LIT_OTHER "*"]}], [{[LIT_CHARS arm] [LIT_OTHER "*"]}], [{[LIT_CHARS i] [LIT_OTHER "?"] [LIT_CHARS 86] [LIT_OTHER "*"]}], [{[LIT_CHARS s390x] [LIT_OTHER "*"]}], [{[LIT_CHARS ppc64le] [LIT_OTHER "*"]}], [{[LIT_OTHER "*"]}]] (= scope= flags=0 words=[] bindings=[('host_arch', {[LIT_CHARS amd64]})]) (= scope= flags=0 words=[] bindings=[('host_arch', {[LIT_CHARS amd64]})]) (= scope= flags=0 words=[] bindings=[('host_arch', {[LIT_CHARS amd64]})]) (= scope= flags=0 words=[] bindings=[('host_arch', {[LIT_CHARS arm]})]) (= scope= flags=0 words=[] bindings=[('host_arch', {[LIT_CHARS 386]})]) (= scope= flags=0 words=[] bindings=[('host_arch', {[LIT_CHARS s390x]})]) (= scope= flags=0 words=[] bindings=[('host_arch', {[LIT_CHARS ppc64le]})]) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Unsupported host arch. Must be x86_64, 386, arm, s390x or ppc64le."]]} < (DescriptorRedirectNode target={[LIT_CHARS 2]} &"> 1), > ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) (If (DBracket {B1 UNARY_STRING_z {[DQ [VarSub KUBECTL_PATH test_op=VS_TEST_COLON_HYPHEN {}]]}}) (List (= scope= flags=0 words=[] bindings=[('locations', {[Array {OP_NEWLINE "\n"} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /_output/bin/kubectl]]} {OP_NEWLINE "\n"} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /_output/dockerized/bin/][VarSub host_os][LIT_CHARS /][VarSub host_arch][LIT_CHARS /kubectl]]} {OP_NEWLINE "\n"} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /_output/local/bin/][VarSub host_os][LIT_CHARS /][VarSub host_arch][LIT_CHARS /kubectl]]} {OP_NEWLINE "\n"} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /platforms/][VarSub host_os][LIT_CHARS /][VarSub host_arch][LIT_CHARS /kubectl]]} {OP_NEWLINE "\n"}]})]) (= scope= flags=0 words=[] bindings=[('kubectl', {[ComSub (Pipeline (Subshell (AndOr OP_OR_IF (Com redirects=[(FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 2)]{[LIT_CHARS ls]} {[LIT_CHARS -t]} {[DQ [VarSub locations bracket_op=(Index {A Atom NODE_ARITH_WORD {AS_OP_AT "@"}})]]}) (Com {[LIT_CHARS true]}) ) ) (Com {[LIT_CHARS head]} {[LIT_CHARS -1]}) )]})]) (If (DBracket {B! {B1 UNARY_FILE_x {[DQ [VarSub kubectl]]}}}) (List (List redirects=[(DescriptorRedirectNode target={[LIT_CHARS 2]} &"> 1)] (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "It looks as if you don't have a compiled kubectl binary"]]} ) (Com {[LIT_CHARS echo]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "If you are running from a clone of the git repo, please run"]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "'./build-tools/run.sh make cross'. Note that this requires having"]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Docker installed."]]} ) (Com {[LIT_CHARS echo]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "If you are running from a binary release tarball, something is wrong. "]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Look at http://kubernetes.io/ for information on how to contact the "]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "development team for help."]]} ) ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) ) (DBracket {B! {B1 UNARY_FILE_x {[DQ [VarSub KUBECTL_PATH]]}}}) (List (List redirects=[(DescriptorRedirectNode target={[LIT_CHARS 2]} &"> 1)] (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "KUBECTL_PATH environment variable set to '"][VarSub KUBECTL_PATH][LIT_CHARS "', but "]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "this doesn't seem to be a valid executable."]]} ) ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) (= scope= flags=0 words=[] bindings=[('kubectl', {[DQ [VarSub KUBECTL_PATH test_op=VS_TEST_COLON_HYPHEN {[VarSub kubectl]}]]})]) (If (DBracket {B2 BINARY_STRING_EQUAL {[DQ [VarSub KUBERNETES_PROVIDER]]} {[DQ [LIT_CHARS gke]]}}) (List (Fork (Com {[LIT_CHARS detect-project]} ) ) (Com < (FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 1), > ) ) (DBracket {B2 BINARY_STRING_EQUAL {[DQ [VarSub KUBERNETES_PROVIDER]]} {[DQ [LIT_CHARS ubuntu]]}}) (List (Com {[LIT_CHARS detect-master]} < (FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 1), > ) (= scope= flags=0 words=[] bindings=[('config', {[Array {OP_NEWLINE "\n"} {[DQ [LIT_CHARS "--server=http://"][VarSub KUBE_MASTER_IP][LIT_CHARS ":8080"]]} {OP_NEWLINE "\n"}]})]) ) ) (If (Com {[LIT_CHARS false]} ) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "current-context: "][\ LIT_ESCAPED_CHAR "\\\""][ComSub (Com {[VarSub kubectl]} {[DQ [VarSub config bracket_op=(Index {A Atom NODE_ARITH_WORD {AS_OP_AT "@"}}) test_op=VS_TEST_COLON_PLUS {[VarSub config bracket_op=(Index {A Atom NODE_ARITH_WORD {AS_OP_AT "@"}})]}]]} {[LIT_CHARS config]} {[LIT_CHARS view]} {[LIT_CHARS -o]} {[LIT_CHARS template]} {[LIT_CHARS --template] [LIT_DBRACKET_LIKE "="] [SQ ]})][\ LIT_ESCAPED_CHAR "\\\""]]} < (DescriptorRedirectNode target={[LIT_CHARS 2]} &"> 1), > ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Running:"]]} {[DQ [VarSub kubectl]]} {[DQ [VarSub config bracket_op=(Index {A Atom NODE_ARITH_WORD {AS_OP_AT "@"}}) test_op=VS_TEST_COLON_PLUS {[VarSub config bracket_op=(Index {A Atom NODE_ARITH_WORD {AS_OP_AT "@"}})]}]]} {[DQ [VarSub @ test_op=VS_TEST_PLUS {[VarSub @]}]]} < (DescriptorRedirectNode target={[LIT_CHARS 2]} &"> 1), > ) ) ) (Com {[DQ [VarSub kubectl]]} {[DQ [VarSub config bracket_op=(Index {A Atom NODE_ARITH_WORD {AS_OP_AT "@"}}) test_op=VS_TEST_COLON_PLUS {[VarSub config bracket_op=(Index {A Atom NODE_ARITH_WORD {AS_OP_AT "@"}})]}]]} {[DQ [VarSub @ test_op=VS_TEST_PLUS {[VarSub @]}]]} ) )