mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
delete-bootstrap-kubelet.conf
This commit is contained in:
parent
b72077410b
commit
f4ad37d7ca
@ -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