mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +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")
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user