File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ ENABLE_METADATA_AGENT="${KUBE_ENABLE_METADATA_AGENT:-none}"
180
180
# Useful for scheduling heapster in large clusters with nodes of small size.
181
181
HEAPSTER_MACHINE_TYPE=" ${HEAPSTER_MACHINE_TYPE:- } "
182
182
183
+ MASTER_NODE_LABELS=" ${KUBE_MASTER_NODE_LABELS:- } "
183
184
# NON_MASTER_NODE_LABELS are labels will only be applied on non-master nodes.
184
185
NON_MASTER_NODE_LABELS=" ${KUBE_NON_MASTER_NODE_LABELS:- } "
185
186
WINDOWS_NON_MASTER_NODE_LABELS=" ${WINDOWS_NON_MASTER_NODE_LABELS:- } "
Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ CONTROLLER_MANAGER_TEST_ARGS="${CONTROLLER_MANAGER_TEST_ARGS:-} ${TEST_CLUSTER_R
223
223
SCHEDULER_TEST_ARGS=" ${SCHEDULER_TEST_ARGS:- } ${TEST_CLUSTER_API_CONTENT_TYPE} "
224
224
KUBEPROXY_TEST_ARGS=" ${KUBEPROXY_TEST_ARGS:- } ${TEST_CLUSTER_API_CONTENT_TYPE} "
225
225
226
+ MASTER_NODE_LABELS=" ${KUBE_MASTER_NODE_LABELS:- } "
226
227
# NON_MASTER_NODE_LABELS are labels will only be applied on non-master nodes.
227
228
NON_MASTER_NODE_LABELS=" ${KUBE_NON_MASTER_NODE_LABELS:- } "
228
229
WINDOWS_NON_MASTER_NODE_LABELS=" ${WINDOWS_NON_MASTER_NODE_LABELS:- } "
Original file line number Diff line number Diff line change @@ -619,6 +619,9 @@ function build-linux-node-labels {
619
619
if [[ -n " ${NON_MASTER_NODE_LABELS:- } " && " ${master} " != " true" ]]; then
620
620
node_labels=" ${node_labels: +${node_labels} ,}${NON_MASTER_NODE_LABELS} "
621
621
fi
622
+ if [[ -n " ${MASTER_NODE_LABELS:- } " && " ${master} " == " true" ]]; then
623
+ node_labels=" ${node_labels: +${node_labels} ,}${MASTER_NODE_LABELS} "
624
+ fi
622
625
echo $node_labels
623
626
}
624
627
You can’t perform that action at this time.
0 commit comments