Skip to content

Commit

Permalink
Fixes kubeflow#1467 (issue when deleting SparkApplication without met…
Browse files Browse the repository at this point in the history
…rics server) (kubeflow#1530)
  • Loading branch information
aneagoe authored May 16, 2022
1 parent ff44591 commit bc8f8a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/spark-operator-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: spark-operator
description: A Helm chart for Spark on Kubernetes operator
version: 1.1.21
appVersion: v1beta2-1.3.5-3.1.1
version: 1.1.22
appVersion: v1beta2-1.3.6-3.1.1
keywords:
- spark
home: https://github.com/GoogleCloudPlatform/spark-on-k8s-operator
Expand Down
4 changes: 3 additions & 1 deletion pkg/controller/sparkapplication/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ func (c *Controller) getAndUpdateAppState(app *v1beta2.SparkApplication) error {
}

func (c *Controller) handleSparkApplicationDeletion(app *v1beta2.SparkApplication) {
c.metrics.exportMetricsOnDelete(app)
if c.metrics != nil {
c.metrics.exportMetricsOnDelete(app)
}
// SparkApplication deletion requested, lets delete driver pod.
if err := c.deleteSparkResources(app); err != nil {
glog.Errorf("failed to delete resources associated with deleted SparkApplication %s/%s: %v", app.Namespace, app.Name, err)
Expand Down

0 comments on commit bc8f8a2

Please sign in to comment.