Skip to content

Commit cd6bae6

Browse files
committed
Improve the field documentation of 'SparkApplication.Spec.Suspend' to make it more descriptive
1 parent 4d6dd1d commit cd6bae6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

api/v1beta2/sparkapplication_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ type SparkApplicationSpec struct {
3535
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
3636
// Important: Run "make generate" to regenerate code after modifying this file
3737

38-
// Suspend specifies whether the Spark operator should create Pods or not.
39-
// If a SparkApplication is created with suspend set to true, no Pods are created
40-
// by the Spark operator. If a SparkApplication is suspended after creation
38+
// Suspend indicates whether the SparkApplication should be suspended.
39+
// When true, the controller skips submitting the Spark job.
40+
// If a SparkApplication is suspended after creation
4141
// (i.e. the flag goes from false to true), the Spark operator will delete
4242
// all active Pods associated with this SparkApplication.
4343
// Users must design their Spark application to gracefully handle this.

config/crd/bases/sparkoperator.k8s.io_scheduledsparkapplications.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10557,9 +10557,9 @@ spec:
1055710557
type: string
1055810558
suspend:
1055910559
description: |-
10560-
Suspend specifies whether the Spark operator should create Pods or not.
10561-
If a SparkApplication is created with suspend set to true, no Pods are created
10562-
by the Spark operator. If a SparkApplication is suspended after creation
10560+
Suspend indicates whether the SparkApplication should be suspended.
10561+
When true, the controller skips submitting the Spark job.
10562+
If a SparkApplication is suspended after creation
1056310563
(i.e. the flag goes from false to true), the Spark operator will delete
1056410564
all active Pods associated with this SparkApplication.
1056510565
Users must design their Spark application to gracefully handle this.

config/crd/bases/sparkoperator.k8s.io_sparkapplications.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10480,9 +10480,9 @@ spec:
1048010480
type: string
1048110481
suspend:
1048210482
description: |-
10483-
Suspend specifies whether the Spark operator should create Pods or not.
10484-
If a SparkApplication is created with suspend set to true, no Pods are created
10485-
by the Spark operator. If a SparkApplication is suspended after creation
10483+
Suspend indicates whether the SparkApplication should be suspended.
10484+
When true, the controller skips submitting the Spark job.
10485+
If a SparkApplication is suspended after creation
1048610486
(i.e. the flag goes from false to true), the Spark operator will delete
1048710487
all active Pods associated with this SparkApplication.
1048810488
Users must design their Spark application to gracefully handle this.

0 commit comments

Comments
 (0)