Commit 60dd611d authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #42853 from mikedanese/fix-bug

Automatic merge from submit-queue (batch tested with PRs 42877, 42853) discriminate more when parsing kube-env :( Exactly match the key. Right now CA_KEY matches ETCD_CA_KEY and we just pick the first because fml. I HATE BASH more fixes for kubelet rbac enablement upgrades.
parents e261cabb 1b8084fc
......@@ -1052,7 +1052,7 @@ function generate-certs {
# $1 master env (kube-env of master; result of calling get-master-env)
# $2 env key to use
function get-env-val() {
local match=`(echo "${1}" | grep ${2}) || echo ""`
local match=`(echo "${1}" | grep -E "^${2}:") || echo ""`
if [[ -z ${match} ]]; then
echo ""
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment