Commit 6e05e1c5 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #43070 from mikedanese/downfix

Automatic merge from submit-queue add a compatibility shim for certs to support a cluster downgrade Fixes https://github.com/kubernetes/kubernetes/issues/42660
parents 8993397a 361c40cc
...@@ -66,6 +66,10 @@ function create-node-pki { ...@@ -66,6 +66,10 @@ function create-node-pki {
KUBELET_KEY_PATH="${pki_dir}/kubelet.key" KUBELET_KEY_PATH="${pki_dir}/kubelet.key"
echo "${KUBELET_KEY}" | base64 --decode > "${KUBELET_KEY_PATH}" echo "${KUBELET_KEY}" | base64 --decode > "${KUBELET_KEY_PATH}"
fi fi
# TODO(mikedanese): remove this when we don't support downgrading to versions
# < 1.6.
ln -s "${CA_CERT_BUNDLE_PATH}" /etc/kubernetes/ca.crt
} }
# A hookpoint for setting up local devices # A hookpoint for setting up local devices
......
...@@ -216,6 +216,10 @@ function create-node-pki { ...@@ -216,6 +216,10 @@ function create-node-pki {
KUBELET_KEY_PATH="${pki_dir}/kubelet.key" KUBELET_KEY_PATH="${pki_dir}/kubelet.key"
echo "${KUBELET_KEY}" | base64 --decode > "${KUBELET_KEY_PATH}" echo "${KUBELET_KEY}" | base64 --decode > "${KUBELET_KEY_PATH}"
fi fi
# TODO(mikedanese): remove this when we don't support downgrading to versions
# < 1.6.
ln -s "${CA_CERT_BUNDLE_PATH}" /etc/srv/kubernetes/ca.crt
} }
function create-master-pki { function create-master-pki {
...@@ -265,6 +269,11 @@ function create-master-pki { ...@@ -265,6 +269,11 @@ function create-master-pki {
SERVICEACCOUNT_KEY_PATH="${pki_dir}/serviceaccount.key" SERVICEACCOUNT_KEY_PATH="${pki_dir}/serviceaccount.key"
echo "${SERVICEACCOUNT_KEY}" | base64 --decode > "${SERVICEACCOUNT_KEY_PATH}" echo "${SERVICEACCOUNT_KEY}" | base64 --decode > "${SERVICEACCOUNT_KEY_PATH}"
# TODO(mikedanese): remove this when we don't support downgrading to versions
# < 1.6.
ln -s "${APISERVER_SERVER_CERT_PATH}" /etc/srv/kubernetes/server.key
ln -s "${APISERVER_SERVER_CERT_PATH}" /etc/srv/kubernetes/server.cert
} }
# After the first boot and on upgrade, these files exist on the master-pd # After the first boot and on upgrade, these files exist on the master-pd
......
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