Skip to content

Commit 8772070

Browse files
committed
Rename SparkApp
1 parent 1fc834e commit 8772070

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/lib/spark/spark.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ var sparkAppTypeMeta = kmeta.TypeMeta{
5353
Kind: "SparkApplication",
5454
}
5555

56-
type SparkAppSpec struct {
56+
type Spec struct {
5757
Name string
5858
Namespace string
5959
Spec sparkop.SparkApplicationSpec
6060
Labels map[string]string
6161
}
6262

63-
func Spark(spec *SparkAppSpec) *sparkop.SparkApplication {
63+
func App(spec *Spec) *sparkop.SparkApplication {
6464
if spec.Namespace == "" {
6565
spec.Namespace = "default"
6666
}

pkg/operator/workloads/spark_workload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func sparkSpec(
180180
memOverheadFactor = pointer.String(s.Float64(*sparkCompute.MemOverheadFactor))
181181
}
182182

183-
return spark.Spark(&spark.SparkAppSpec{
183+
return spark.App(&spark.Spec{
184184
Name: workloadID,
185185
Namespace: config.Cortex.Namespace,
186186
Labels: map[string]string{

0 commit comments

Comments
 (0)