#!/bin/bash # Copyright 2016 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. global KUBE_ROOT := "$[dirname $(BASH_SOURCE)]/../.." if [[ ! -z "${1:-}" ]] { export KUBE_GCE_ZONE="$(1)" } if [[ ! -z "${2:-}" ]] { export MULTIZONE="$(2)" } if [[ ! -z "${3:-}" ]] { export KUBE_REPLICATE_EXISTING_MASTER="$(3)" } if [[ ! -z "${4:-}" ]] { export KUBE_USE_EXISTING_MASTER="$(4)" } if [[ -z "${NUM_NODES:-}" ]] { export NUM_NODES=3 } source "$(KUBE_ROOT)/hack/e2e-internal/e2e-up.sh" (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KUBE_ROOT) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(dirname)} {(DQ (${ VSub_Name BASH_SOURCE))})] ) left_token: spids: [45 53] ) (/../..) } spids: [44] ) ] spids: [44] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (LogicalNot child: (BoolUnary op_id: BoolUnary_z child: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [66 69] ) ) } ) ) ) terminator: ) ] action: [(C {(export)} {(Lit_VarLike "KUBE_GCE_ZONE=") (DQ (${ VSub_Number 1))})] spids: [-1 75] ) ] spids: [-1 87] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (LogicalNot child: (BoolUnary op_id: BoolUnary_z child: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [98 101] ) ) } ) ) ) terminator: ) ] action: [(C {(export)} {(Lit_VarLike "MULTIZONE=") (DQ (${ VSub_Number 2))})] spids: [-1 107] ) ] spids: [-1 119] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (LogicalNot child: (BoolUnary op_id: BoolUnary_z child: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [130 133] ) ) } ) ) ) terminator: ) ] action: [ (C {(export)} {(Lit_VarLike "KUBE_REPLICATE_EXISTING_MASTER=") (DQ (${ VSub_Number 3))}) ] spids: [-1 139] ) ] spids: [-1 151] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (LogicalNot child: (BoolUnary op_id: BoolUnary_z child: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [162 165] ) ) } ) ) ) terminator: ) ] action: [(C {(export)} {(Lit_VarLike "KUBE_USE_EXISTING_MASTER=") (DQ (${ VSub_Number 4))})] spids: [-1 171] ) ] spids: [-1 183] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolUnary op_id: BoolUnary_z child: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [192 195] ) ) } ) ) terminator: ) ] action: [(C {(export)} {(Lit_VarLike "NUM_NODES=") (3)})] spids: [-1 201] ) ] spids: [-1 209] ) (C {(source)} {(DQ (${ VSub_Name KUBE_ROOT) (/hack/e2e-internal/e2e-up.sh))}) ] )