Skip to content

fix: derive AllWorkloadNames from registry instead of hardcoding#40

Merged
mrhillsman merged 1 commit into
mainfrom
fix/derive-workload-names-from-registry
May 21, 2026
Merged

fix: derive AllWorkloadNames from registry instead of hardcoding#40
mrhillsman merged 1 commit into
mainfrom
fix/derive-workload-names-from-registry

Conversation

@mrhillsman

Copy link
Copy Markdown
Contributor

AllWorkloadNames is now a function that returns DefaultRegistry().List() instead of a hardcoded slice. This ensures workload names are always derived from the actual registry, preventing silent exclusion of newly added workloads.

Changes:

  • Convert AllWorkloadNames from var to func in registry.go
  • Update all usages to call AllWorkloadNames()
  • Add test to verify AllWorkloadNames() matches DefaultRegistry().List()

Fixes #6

@exe-prow-github-app exe-prow-github-app Bot requested review from caxu-rh and jomkz May 20, 2026 05:39
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrhillsman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 20, 2026
@mrhillsman mrhillsman removed request for caxu-rh and jomkz May 21, 2026 03:13
@mrhillsman mrhillsman force-pushed the fix/derive-workload-names-from-registry branch 2 times, most recently from 830ff29 to 3440ad3 Compare May 21, 2026 15:36
AllWorkloadNames is now a function that returns DefaultRegistry().List()
instead of a hardcoded slice. This ensures workload names are always
derived from the actual registry, preventing silent exclusion of newly
added workloads.

Changes:
- Convert AllWorkloadNames from var to func in registry.go
- Update all usages to call AllWorkloadNames()
- Add test to verify AllWorkloadNames() matches DefaultRegistry().List()

Fixes #6

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@mrhillsman mrhillsman force-pushed the fix/derive-workload-names-from-registry branch from 3440ad3 to 030476b Compare May 21, 2026 15:37
@mrhillsman mrhillsman merged commit 1b59782 into main May 21, 2026
3 of 4 checks passed
@mrhillsman mrhillsman deleted the fix/derive-workload-names-from-registry branch May 22, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: AllWorkloadNames is manually maintained, not derived from the registry

1 participant