Skip to content

Commit 05a5456

Browse files
committed
Don't delete individual pods on cortex delete
1 parent cc6f70f commit 05a5456

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/operator/workloads/workflow.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,6 @@ func DeleteApp(appName string, keepCache bool) bool {
164164
for _, sparkApp := range sparkApps {
165165
config.Spark.Delete(sparkApp.Name)
166166
}
167-
pods, _ := config.Kubernetes.ListPodsByLabel("appName", appName)
168-
for _, pod := range pods {
169-
config.Kubernetes.DeletePod(pod.Name)
170-
}
171167

172168
wasDeployed := false
173169
if ctx := CurrentContext(appName); ctx != nil {

0 commit comments

Comments
 (0)