Skip to content

Commit a57957f

Browse files
committed
feat: add pending updates and config gen options to support bundle
Enrich support bundle with extra resources. `MachinePendingUpdates` for in-flight update state and `MachineConfigGenOptions` for the config-generation inputs. Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com>
1 parent c91ce1a commit a57957f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

internal/backend/grpc/support.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ func (s *managementServer) collectClusterResources(ctx context.Context, cluster
334334
rt: omni.ControlPlaneStatusType,
335335
listOptions: clusterQuery,
336336
},
337+
{
338+
rt: omni.MachinePendingUpdatesType,
339+
listOptions: clusterQuery,
340+
},
337341
}
338342

339343
machineIDs := map[string]struct{}{}
@@ -413,6 +417,17 @@ func (s *managementServer) collectClusterResources(ctx context.Context, cluster
413417
}
414418

415419
resources = append(resources, labels)
420+
421+
machineConfigGenOptions, err := safe.ReaderGetByID[*omni.MachineConfigGenOptions](ctx, st, id)
422+
if err != nil {
423+
if state.IsNotFoundError(err) {
424+
continue
425+
}
426+
427+
return nil, err
428+
}
429+
430+
resources = append(resources, machineConfigGenOptions)
416431
}
417432

418433
return resources, nil

0 commit comments

Comments
 (0)