From efb52a43e94ba63a0ad84cb693e9446c0cc62e78 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pinalie Date: Wed, 20 May 2026 14:27:26 +0200 Subject: [PATCH] Allow one-off jobs creation from cronjobs --- pkg/resource/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resource/service.go b/pkg/resource/service.go index 0b41dc5..42c0209 100644 --- a/pkg/resource/service.go +++ b/pkg/resource/service.go @@ -197,7 +197,7 @@ func (rs *Service) ListResources(ctx context.Context, params ResourceParams) ([] } func (rs *Service) GetResource(ctx context.Context, id string) (Resource, error) { - if strings.HasPrefix(id, serverResourceIDPrefix) { + if strings.HasPrefix(id, serverResourceIDPrefix) || strings.HasPrefix(id, cronjobResourceIDPrefix) { return rs.serviceService.GetService(ctx, id) }