Fix: remove checks of the exists of release when delete app and repo

Signed-off-by: LiHui <andrewli@yunify.com>
This commit is contained in:
LiHui
2021-03-24 18:33:05 +08:00
parent 542eb180c5
commit 9fc0f8d89b
5 changed files with 17 additions and 49 deletions

View File

@@ -267,6 +267,11 @@ func (c *releaseOperator) ListApplications(workspace, clusterName, namespace str
ls[constants.ChartApplicationVersionIdLabelKey] = versionId
}
repoId := conditions.Match[RepoId]
if repoId != "" {
ls[constants.ChartRepoIdLabelKey] = repoId
}
if workspace != "" {
ls[constants.WorkspaceLabelKey] = workspace
}