Skip to content

Commit

Permalink
minor refactor: fix camel-casing of unHealthy -> unhealthy (#333)
Browse files Browse the repository at this point in the history
It's one word so don't need to be camel-cased.
  • Loading branch information
davidxia authored Jul 3, 2022
1 parent d488943 commit 3e7749d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ray-operator/apis/ray/v1alpha1/raycluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type ClusterState string

const (
Ready ClusterState = "ready"
UnHealthy ClusterState = "unHealthy"
Unhealthy ClusterState = "unhealthy"
Failed ClusterState = "failed"
)

Expand Down
2 changes: 1 addition & 1 deletion ray-operator/controllers/ray/raycluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func (r *RayClusterReconciler) updateStatus(instance *rayiov1alpha1.RayCluster)
}
// only in invalid status that we update the status to unhealthy.
if !isValid {
instance.Status.State = rayiov1alpha1.UnHealthy
instance.Status.State = rayiov1alpha1.Unhealthy
} else {
if utils.CheckAllPodsRunnning(runtimePods) {
instance.Status.State = rayiov1alpha1.Ready
Expand Down

0 comments on commit 3e7749d

Please sign in to comment.