Skip to content

Commit

Permalink
Merge pull request #358 from bjwswang/gql
Browse files Browse the repository at this point in the history
fix: use condnition.status as the model status
  • Loading branch information
bjwswang authored Dec 12, 2023
2 parents 51eddbd + 4631389 commit 61b9e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql-server/go-server/pkg/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func obj2model(obj *unstructured.Unstructured) *generated.Model {
updateTime := condition.LastTransitionTime.Time

// Unknown,Pending ,WorkerRunning ,Error
status := string(condition.Reason)
status := string(condition.Status)

var systemModel bool
if obj.GetNamespace() == config.GetConfig().SystemNamespace {
Expand Down

0 comments on commit 61b9e33

Please sign in to comment.