Skip to content

Commit

Permalink
feat(sidecar): support for terminating sidecars on Spark Applications
Browse files Browse the repository at this point in the history
  • Loading branch information
sylus authored Jun 21, 2023
1 parent 4aff805 commit 182bc59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/sidecarterminator/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ func isOwnedByJob(references []metav1.OwnerReference) bool {
if strings.HasPrefix(ref.APIVersion, "argoproj.io/") && ref.Kind == "Workflow" {
return true
}

// Spark Applications
if strings.HasPrefix(ref.APIVersion, "sparkoperator.k8s.io/") && ref.Kind == "SparkApplication" {
return true
}
}

return false
Expand Down

0 comments on commit 182bc59

Please sign in to comment.