Skip to content

Commit c96c667

Browse files
committed
Rename SparkConnectStateUnready to SparkConnectStateNotReady
Signed-off-by: Yi Chen <[email protected]>
1 parent d6ef7fc commit c96c667

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/v1alpha1/sparkconnect_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const (
160160
SparkConnectStateNew SparkConnectState = ""
161161
SparkConnectStateProvisioning SparkConnectState = "Provisioning"
162162
SparkConnectStateReady SparkConnectState = "Ready"
163-
SparkConnectStateUnready SparkConnectState = "Unready"
163+
SparkConnectStateNotReady SparkConnectState = "NotReady"
164164
SparkConnectStateFailed SparkConnectState = "Failed"
165165
)
166166

internal/controller/sparkconnect/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func (r *Reconciler) createOrUpdateServerPod(ctx context.Context, conn *v1alpha1
312312
Message: "Server pod is not ready",
313313
}
314314
_ = meta.SetStatusCondition(&conn.Status.Conditions, condition)
315-
conn.Status.State = v1alpha1.SparkConnectStateUnready
315+
conn.Status.State = v1alpha1.SparkConnectStateNotReady
316316
}
317317

318318
conn.Status.Server.PodName = pod.Name

0 commit comments

Comments
 (0)