mirror of https://github.com/k3s-io/k3s
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.pull/6/head
commit
60dd611da5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue