File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -107,3 +107,7 @@ function delete-kubemark-master {
107
107
" ${KUBE_ROOT} /hack/e2e-internal/e2e-down.sh"
108
108
)
109
109
}
110
+
111
+ function calculate-node-labels {
112
+ echo " cloud.google.com/metadata-proxy-ready=true"
113
+ }
Original file line number Diff line number Diff line change 58
58
" $(CONTENT_TYPE)" ,
59
59
" --log-file=/var/log/kubelet-$(NODE_NAME).log" ,
60
60
" --logtostderr=false" ,
61
+ " --node-labels={{hollow_node_labels}}" ,
61
62
{{hollow_kubelet_params}}
62
63
]
63
64
volumeMounts :
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ function delete-kubemark-master {
35
35
echo " Deleting cluster..."
36
36
}
37
37
38
+ # This function should return node labels.
39
+ function calculate-node-labels {
40
+ echo " "
41
+ }
42
+
38
43
# Common colors used throughout the kubemark scripts
39
44
if [[ -z " ${color_start-} " ]]; then
40
45
declare -r color_start=" \033["
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ function create-kube-hollow-node-resources {
152
152
proxy_cpu=${KUBEMARK_HOLLOW_PROXY_MILLICPU:- $proxy_cpu }
153
153
proxy_mem_per_node=${KUBEMARK_HOLLOW_PROXY_MEM_PER_NODE_KB:- 50}
154
154
proxy_mem=$(( 100 * 1024 + proxy_mem_per_node* NUM_NODES))
155
+ hollow_node_labels=${HOLLOW_NODE_LABELS:- $(calculate-node-labels)}
155
156
hollow_kubelet_params=$( eval " for param in ${HOLLOW_KUBELET_TEST_ARGS:- } ; do echo -n \\\"\$ param\\\" ,; done" )
156
157
hollow_kubelet_params=${hollow_kubelet_params% ?}
157
158
hollow_proxy_params=$( eval " for param in ${HOLLOW_PROXY_TEST_ARGS:- } ; do echo -n \\\"\$ param\\\" ,; done" )
@@ -166,6 +167,7 @@ function create-kube-hollow-node-resources {
166
167
sed -i' ' -e " s@{{kubemark_image_registry}}@${KUBEMARK_IMAGE_REGISTRY} @g" " ${RESOURCE_DIRECTORY} /hollow-node.yaml"
167
168
sed -i' ' -e " s@{{kubemark_image_tag}}@${KUBEMARK_IMAGE_TAG} @g" " ${RESOURCE_DIRECTORY} /hollow-node.yaml"
168
169
sed -i' ' -e " s@{{master_ip}}@${MASTER_IP} @g" " ${RESOURCE_DIRECTORY} /hollow-node.yaml"
170
+ sed -i' ' -e " s@{{hollow_node_labels}}@${hollow_node_labels} @g" " ${RESOURCE_DIRECTORY} /hollow-node.yaml"
169
171
sed -i' ' -e " s@{{hollow_kubelet_params}}@${hollow_kubelet_params} @g" " ${RESOURCE_DIRECTORY} /hollow-node.yaml"
170
172
sed -i' ' -e " s@{{hollow_proxy_params}}@${hollow_proxy_params} @g" " ${RESOURCE_DIRECTORY} /hollow-node.yaml"
171
173
sed -i' ' -e " s@{{kubemark_mig_config}}@${KUBEMARK_MIG_CONFIG:- } @g" " ${RESOURCE_DIRECTORY} /hollow-node.yaml"
You can’t perform that action at this time.
0 commit comments