mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
kubeadm: remove unused CreateKubeConfigFileFunc type
This commit is contained in:
parent
f1d63237ed
commit
1c82e03c2a
@ -103,9 +103,6 @@ func CreateJoinControlPlaneKubeConfigFiles(outDir string, cfg *kubeadmapi.InitCo
|
|||||||
return nil
|
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.
|
// CreateKubeConfigFile creates a kubeconfig file.
|
||||||
// If the kubeconfig file already exists, it is used only if evaluated equal; otherwise an error is returned.
|
// 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 {
|
func CreateKubeConfigFile(kubeConfigFileName string, outDir string, cfg *kubeadmapi.InitConfiguration) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user