Merge pull request #80676 from fabriziopandini/delete-bootstrap-kubelet.conf

kubeadm: delete bootstrap-kubelet.conf after TLS bootstrap
This commit is contained in:
Kubernetes Prow Robot 2019-07-31 00:24:47 -07:00 committed by GitHub
commit 82a252ad74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,6 +167,11 @@ func runKubeletStartJoinPhase(c workflow.RunData) error {
return errors.Wrap(err, "error uploading crisocket")
}
// Deletes the bootstrapKubeConfigFile, so the credential used for TLS bootstrap are removed from disk
if err := os.Remove(bootstrapKubeConfigFile); err != nil {
return errors.Wrapf(err, "error deleting %s", bootstrapKubeConfigFile)
}
return nil
}