mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #80676 from fabriziopandini/delete-bootstrap-kubelet.conf
kubeadm: delete bootstrap-kubelet.conf after TLS bootstrap
This commit is contained in:
commit
82a252ad74
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user