refactor: refactor DHCP logic (#298)

This commit is contained in:
naison
2024-07-19 22:07:35 +08:00
committed by GitHub
parent 78de74bf08
commit bc7d205695
37 changed files with 952 additions and 1131 deletions

View File

@@ -125,8 +125,7 @@ func InitFactory(kubeconfigBytes string, ns string) cmdutil.Factory {
}
return c
}
// todo optimize here
temp, err := os.CreateTemp("", "*.json")
temp, err := os.CreateTemp("", "*.kubeconfig")
if err != nil {
return nil
}