fixed version check, removed duplicate kube config, fix flags warning, fixed log of invalid config (#227)

This commit is contained in:
RoyUP9
2021-08-18 18:10:47 +03:00
committed by GitHub
parent 2ae0a2400d
commit bf27e94003
12 changed files with 102 additions and 33 deletions

View File

@@ -265,7 +265,7 @@ func cleanUpMizuResources(kubernetesProvider *kubernetes.Provider) {
if config.Config.DumpLogs {
mizuDir := mizu.GetMizuFolderPath()
filePath = path.Join(mizuDir, fmt.Sprintf("mizu_logs_%s.zip", time.Now().Format("2006_01_02__15_04_05")))
filePath := path.Join(mizuDir, fmt.Sprintf("mizu_logs_%s.zip", time.Now().Format("2006_01_02__15_04_05")))
if err := fsUtils.DumpLogs(kubernetesProvider, removalCtx, filePath); err != nil {
logger.Log.Errorf("Failed dump logs %v", err)
}