#!/bin/bash # Copyright 2014 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. ## Contains configuration values for interacting with the Vagrant cluster in test mode #Set NUM_NODES to minimum required for testing. global NUM_NODES := '2' global KUBE_ROOT := "$[dirname $(BASH_SOURCE)]/../.." source "$(KUBE_ROOT)/cluster/vagrant/config-default.sh" # Do not register the master kubelet during testing global REGISTER_MASTER_KUBELET := $(REGISTER_MASTER:-false) # Optional: if set to true, kube-up will configure the cluster to run e2e tests. global E2E_STORAGE_TEST_ENVIRONMENT := $(KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false) (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:NUM_NODES) op:Equal rhs:{(2)} spids:[50])] spids: [50] ) (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: [55 63] ) (/../..) } spids: [54] ) ] spids: [54] ) (C {(source)} {(DQ (${ VSub_Name KUBE_ROOT) (/cluster/vagrant/config-default.sh))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:REGISTER_MASTER_KUBELET) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(false)}) spids: [80 84] ) } spids: [79] ) ] spids: [79] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:E2E_STORAGE_TEST_ENVIRONMENT) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(false)}) spids: [91 95] ) } spids: [90] ) ] spids: [90] ) ] )