Skip to content

fix: count job and pod from all users#492

Open
RK181 wants to merge 3 commits intodevelfrom
fix-status-pods-jobs
Open

fix: count job and pod from all users#492
RK181 wants to merge 3 commits intodevelfrom
fix-status-pods-jobs

Conversation

@RK181
Copy link
Copy Markdown
Contributor

@RK181 RK181 commented Mar 30, 2026

Fixes grycap/issue-tracker#302

Introduction of marker label for OSCAR user services:

  • Added the constant OscarUserServiceLabel to pkg/types/service.go to serve as a marker label for all user service-related resources.
  • Updated resource creation logic in pkg/handlers/create.go and pkg/backends/resources/expose.go to ensure all relevant pods, jobs, and deployments are labeled with OscarUserServiceLabel.

Fix job and pod aggregation:

  • The getJobsInfo function now lists all namespaces and filters them by the "oscar-svc" prefix, aggregating jobs and pods from each relevant namespace instead of only the configured ServicesNamespace.
  • Updated tests

@RK181 RK181 marked this pull request as draft March 30, 2026 08:00
@RK181 RK181 force-pushed the fix-status-pods-jobs branch from f44a303 to 223d477 Compare March 30, 2026 08:15
@RK181 RK181 marked this pull request as ready for review March 30, 2026 08:15
@RK181 RK181 force-pushed the fix-status-pods-jobs branch from bd9e561 to 223d477 Compare March 30, 2026 13:46
@RK181 RK181 force-pushed the fix-status-pods-jobs branch from 9f0c85e to a219f2d Compare March 31, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant