Skip to content

Commit

Permalink
Merge pull request #590 from xxxxibo/main
Browse files Browse the repository at this point in the history
fix:the field replicas display
  • Loading branch information
bjwswang authored Jan 19, 2024
2 parents 360066b + 6fa1208 commit 00ce016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiserver/pkg/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func Worker2model(ctx context.Context, c dynamic.Interface, obj *unstructured.Un
// replicas
var replicas string
if worker.Spec.Replicas != nil {
replicas = fmt.Sprint(worker.Spec.Replicas)
replicas = fmt.Sprint(*worker.Spec.Replicas)
}

// resources
Expand Down

0 comments on commit 00ce016

Please sign in to comment.