(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]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "kube-push.sh is currently broken; see https://github.com/kubernetes/kubernetes/issues/17397"]]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) (= scope= flags=0 words=[] bindings=[('KUBE_ROOT', {[ComSub (Com {[LIT_CHARS dirname]} {[DQ [VarSub BASH_SOURCE]]})] [LIT_CHARS /..]})]) (If (Com {[LIT_DBRACKET_LIKE "["]} {[LIT_CHARS -f]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /cluster/env.sh]]} {[LIT_DBRACKET_LIKE "]"]} ) (Com {[LIT_CHARS source]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /cluster/env.sh]]} ) ) (Com {[LIT_CHARS source]} {[DQ [VarSub KUBE_ROOT][LIT_CHARS /cluster/kube-util.sh]]} ) (FunctionDef usage [] (List (Com {[LIT_CHARS echo]} {[DQ [VarSub 0][LIT_CHARS " [-m|-n ] "]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS " Updates Kubernetes binaries. Can be done for all components (by default), master(-m) or specified node(-n)."]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS " If the version is not specified will try to use local binaries."]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS " Warning: upgrading single node is experimental"]]} ) ) ) (= scope= flags=0 words=[] bindings=[('push_to_master', {[LIT_CHARS false]})]) (= scope= flags=0 words=[] bindings=[('push_to_node', {[LIT_CHARS false]})]) (While (Com {[LIT_CHARS getopts]} {[DQ [LIT_CHARS "mn:h"]]} {[LIT_CHARS opt]} ) (Case to_match={[VarSub opt]}, pat_word_list=[[{[LIT_CHARS m]}], [{[LIT_CHARS n]}], [{[LIT_CHARS h]}], [{[\ LIT_ESCAPED_CHAR "\\?"]}]] (= scope= flags=0 words=[] bindings=[('push_to_master', {[LIT_CHARS true]})]) (List (= scope= flags=0 words=[] bindings=[('push_to_node', {[LIT_CHARS true]})]) (= scope= flags=0 words=[] bindings=[('node_id', {[DQ [VarSub OPTARG]]})]) ) (List (Com {[LIT_CHARS usage]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 0]} ) ) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Invalid option: -"][VarSub OPTARG]]} < (DescriptorRedirectNode target={[LIT_CHARS 2]} &"> 1), > ) (Com {[LIT_CHARS usage]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) ) (Com {[LIT_CHARS shift]} {[ArithSub {A2 AS_OP_MINUS {A Atom NODE_ARITH_WORD {[VarSub OPTIND]}} {A Atom NODE_ARITH_WORD {[AS_NUM_LITERAL 1]}}}]} ) (If (AndOr OP_AND_IF (DBracket {B2 BINARY_STRING_EQUAL {[DQ [VarSub push_to_master]]} {[DQ [LIT_CHARS true]]}}) (DBracket {B2 BINARY_STRING_EQUAL {[DQ [VarSub push_to_node]]} {[DQ [LIT_CHARS true]]}}) ) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Only one of options -m -n should be specified"]]} ) (Com {[LIT_CHARS usage]} ) (Com {[LIT_CHARS exit]} {[LIT_CHARS 1]} ) ) ) (Com {[LIT_CHARS verify-prereqs]} ) (= scope= flags=0 words=[] bindings=[('KUBE_VERSION', {[VarSub 1 test_op=VS_TEST_HYPHEN {}]})]) (If (AndOr OP_AND_IF (DBracket {B2 BINARY_STRING_EQUAL {[DQ [VarSub push_to_master]]} {[DQ [LIT_CHARS false]]}}) (DBracket {B2 BINARY_STRING_EQUAL {[DQ [VarSub push_to_node]]} {[DQ [LIT_CHARS false]]}}) ) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Updating cluster using provider: "][VarSub KUBERNETES_PROVIDER]]} ) (Com {[LIT_CHARS kube-push]} ) ) ) (If (DBracket {B2 BINARY_STRING_EQUAL {[DQ [VarSub push_to_master]]} {[DQ [LIT_CHARS true]]}}) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Updating master to version "][VarSub KUBE_VERSION test_op=VS_TEST_COLON_HYPHEN {[DQ [LIT_CHARS dev]]}]]} ) (Com {[LIT_CHARS prepare-push]} {[LIT_CHARS false]} ) (Com {[LIT_CHARS push-master]} ) ) ) (If (DBracket {B2 BINARY_STRING_EQUAL {[DQ [VarSub push_to_node]]} {[DQ [LIT_CHARS true]]}}) (List (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Updating node "][VarSub node_id][LIT_CHARS " to version "][VarSub KUBE_VERSION test_op=VS_TEST_COLON_HYPHEN {[DQ [LIT_CHARS dev]]}]]} ) (Com {[LIT_CHARS prepare-push]} {[LIT_CHARS true]} ) (Com {[LIT_CHARS push-node]} {[VarSub node_id]} ) ) ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS "Validating cluster post-push..."]]} ) (Com {[DQ [VarSub KUBE_ROOT][LIT_CHARS /cluster/validate-cluster.sh]]} ) (Com {[LIT_CHARS echo]} {[DQ [LIT_CHARS Done]]} ) )