Clean up unused variables and functions (#5818)

Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
This commit is contained in:
Fish-pro
2023-02-09 10:53:24 +08:00
committed by GitHub
parent 0be05c9bc8
commit ef05af13bf
12 changed files with 0 additions and 93 deletions
-5
View File
@@ -69,11 +69,6 @@ func (o *option) bindFlags(flags *pflag.FlagSet) {
flags.BoolVar(&o.verbose, "verbose", false, "When it's set to true the debug messages by crashd will be printed during execution. Default value is false.")
}
func (o *option) asCrashdArgs() string {
return fmt.Sprintf("output=%s,namespace=%s,basedir=%s,backup=%s,restore=%s,kubeconfig=%s,kubecontext=%s",
o.outputPath, o.namespace, o.baseDir, o.backup, o.restore, o.kubeconfigPath, o.kubeContext)
}
func (o *option) asCrashdArgMap() exec.ArgMap {
return exec.ArgMap{
"cmd": o.currCmd,