From fb278182d37a5cccdf24e66a6b10532575f033c0 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 12 Nov 2025 13:50:09 +0100 Subject: [PATCH] add schedulerState resolver --- internal/graph/schema.resolvers.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/graph/schema.resolvers.go b/internal/graph/schema.resolvers.go index 9f91397..debe54a 100644 --- a/internal/graph/schema.resolvers.go +++ b/internal/graph/schema.resolvers.go @@ -312,7 +312,11 @@ func (r *nodeResolver) ID(ctx context.Context, obj *schema.Node) (string, error) // SchedulerState is the resolver for the schedulerState field. func (r *nodeResolver) SchedulerState(ctx context.Context, obj *schema.Node) (schema.SchedulerState, error) { - panic(fmt.Errorf("not implemented: SchedulerState - schedulerState")) + if obj.NodeState != "" { + return obj.NodeState, nil + } else { + return "", fmt.Errorf("No SchedulerState (NodeState) on Object") + } } // HealthState is the resolver for the healthState field.