mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
Merge pull request #124684 from SataQiu/clean-20240503
kubeadm: remove unused CreateKubeConfigFileFunc type
This commit is contained in:
commit
30ae12d018
@ -103,9 +103,6 @@ func CreateJoinControlPlaneKubeConfigFiles(outDir string, cfg *kubeadmapi.InitCo
|
||||
return nil
|
||||
}
|
||||
|
||||
// CreateKubeConfigFileFunc defines a function type used for creating kubeconfig files.
|
||||
type CreateKubeConfigFileFunc func(string, string, *kubeadmapi.InitConfiguration) error
|
||||
|
||||
// CreateKubeConfigFile creates a kubeconfig file.
|
||||
// If the kubeconfig file already exists, it is used only if evaluated equal; otherwise an error is returned.
|
||||
func CreateKubeConfigFile(kubeConfigFileName string, outDir string, cfg *kubeadmapi.InitConfiguration) error {
|
||||
|
Loading…
Reference in New Issue
Block a user