diff --git a/cluster/gce/configure-vm.sh b/cluster/gce/configure-vm.sh index 84c2f97e0d2..09e22b351a3 100755 --- a/cluster/gce/configure-vm.sh +++ b/cluster/gce/configure-vm.sh @@ -448,7 +448,7 @@ initial_etcd_cluster: '$(echo "${INITIAL_ETCD_CLUSTER:-}" | sed -e "s/'/''/g")' initial_etcd_cluster_state: '$(echo "${INITIAL_ETCD_CLUSTER_STATE:-}" | sed -e "s/'/''/g")' ca_cert_bundle_path: '$(echo "${CA_CERT_BUNDLE_PATH:-}" | sed -e "s/'/''/g")' hostname: $(hostname -s) -enable_pod_priority: '$(echo "$ENABLE_POD_PRIORITY" | sed -e "s/'/''/g")' +enable_pod_priority: '$(echo "${ENABLE_POD_PRIORITY:-}" | sed -e "s/'/''/g")' enable_default_storage_class: '$(echo "$ENABLE_DEFAULT_STORAGE_CLASS" | sed -e "s/'/''/g")' kube_proxy_daemonset: '$(echo "$KUBE_PROXY_DAEMONSET" | sed -e "s/'/''/g")' EOF diff --git a/cluster/gce/container-linux/configure-helper.sh b/cluster/gce/container-linux/configure-helper.sh index 1f776ff1075..c30fc1b7614 100755 --- a/cluster/gce/container-linux/configure-helper.sh +++ b/cluster/gce/container-linux/configure-helper.sh @@ -706,7 +706,7 @@ function prepare-kube-proxy-manifest-variables { kube_cache_mutation_detector_env_value="value: \"${ENABLE_CACHE_MUTATION_DETECTOR}\"" fi local pod_priority="" - if [[ "${ENABLE_POD_PRIORITY}" == "true" ]]; then + if [[ "${ENABLE_POD_PRIORITY:-}" == "true" ]]; then pod_priority="priorityClassName: system-node-critical" fi sed -i -e "s@{{kubeconfig}}@${kubeconfig}@g" ${src_file} diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index e8ee1d53f02..27b44c947a3 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -1042,7 +1042,7 @@ function prepare-kube-proxy-manifest-variables { kube_cache_mutation_detector_env_value="value: \"${ENABLE_CACHE_MUTATION_DETECTOR}\"" fi local pod_priority="" - if [[ "${ENABLE_POD_PRIORITY}" == "true" ]]; then + if [[ "${ENABLE_POD_PRIORITY:-}" == "true" ]]; then pod_priority="priorityClassName: system-node-critical" fi sed -i -e "s@{{kubeconfig}}@${kubeconfig}@g" ${src_file}