#!/bin/bash # Copyright 2017 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. # Configuration for landing a Kubemark cluster on a pre-existing Kubernetes # cluster. # Pre-existing provider expects a MASTER_IP. # If you need to specify a port that's not the default (443), add it to MASTER_IP. # # Example: Connect to the Master on the secure port 6443 # MASTER_IP=192.168.122.5:6443 # global MASTER_IP := $(MASTER_IP:-) # The container registry and project given to the kubemark container: # $CONTAINER_REGISTRY/$PROJECT/kubemark # global CONTAINER_REGISTRY := $(CONTAINER_REGISTRY:-) global PROJECT := $(PROJECT:-) global NUM_NODES := $(NUM_NODES:-1) global TEST_CLUSTER_API_CONTENT_TYPE := $(TEST_CLUSTER_API_CONTENT_TYPE:-) global KUBELET_TEST_LOG_LEVEL := $(KUBELET_TEST_LOG_LEVEL:-) global KUBEPROXY_TEST_LOG_LEVEL := $(KUBEPROXY_TEST_LOG_LEVEL:-) global MASTER_NAME := $(MASTER_NAME:-) global USE_REAL_PROXIER := $(USE_REAL_PROXIER:-true) (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:MASTER_IP) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [70 73] ) ) } spids: [68] ) ] spids: [68] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CONTAINER_REGISTRY) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [88 91] ) ) } spids: [86] ) ] spids: [86] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:PROJECT) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [96 99] ) ) } spids: [94] ) ] spids: [94] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:NUM_NODES) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(1)}) spids: [105 109] ) ) } spids: [103] ) ] spids: [103] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:TEST_CLUSTER_API_CONTENT_TYPE) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [115 118] ) ) } spids: [113] ) ] spids: [113] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KUBELET_TEST_LOG_LEVEL) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [123 126] ) ) } spids: [121] ) ] spids: [121] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KUBEPROXY_TEST_LOG_LEVEL) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [131 134] ) ) } spids: [129] ) ] spids: [129] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:MASTER_NAME) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )}) spids: [139 142] ) ) } spids: [137] ) ] spids: [137] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:USE_REAL_PROXIER) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(true)}) spids: [147 151] ) ) } spids: [145] ) ] spids: [145] ) ] )