Skip to content

feat: validate workload names upfront and add VM creation concurrency limit#140

Merged
mrhillsman merged 3 commits into
mainfrom
feat/122-125-workload-validation-concurrency-limit
May 30, 2026
Merged

feat: validate workload names upfront and add VM creation concurrency limit#140
mrhillsman merged 3 commits into
mainfrom
feat/122-125-workload-validation-concurrency-limit

Conversation

@mrhillsman

Copy link
Copy Markdown
Contributor

Summary

  • Workload name validation: ValidateWorkloadNames() now checks all --workloads entries against the registry before audit initialization, so typos are caught early ? including in --dry-run mode. Invalid names get Levenshtein-based "did you mean?" suggestions (e.g. unknown workload(s): "cppu" (did you mean "cpu"?)).

  • VM creation concurrency limit: Adds --vm-concurrency flag (default 10) that calls errgroup.SetLimit() in createVMs, capping the number of simultaneous API calls. Follows the existing pattern used by createSecrets.

Resolves #122
Resolves #125

@exe-prow-github-app exe-prow-github-app Bot requested a review from OchiengEd May 30, 2026 05:00
@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 30, 2026
…suggestions

Validate all workload names against the registry before audit
initialization so typos are caught early, including in --dry-run mode.
Uses Levenshtein distance for "did you mean?" suggestions.

Resolves #122

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
…eation

Add errgroup.SetLimit to createVMs using a configurable concurrency
cap (default 10) to prevent overwhelming API servers at scale.

Resolves #125

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@mrhillsman mrhillsman force-pushed the feat/122-125-workload-validation-concurrency-limit branch from 1b5db50 to 7297cfe Compare May 30, 2026 05:05
Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@mrhillsman mrhillsman force-pushed the feat/122-125-workload-validation-concurrency-limit branch from 7297cfe to 5679eb1 Compare May 30, 2026 05:07
@mrhillsman mrhillsman merged commit 9ae503a into main May 30, 2026
3 of 4 checks passed
@mrhillsman mrhillsman deleted the feat/122-125-workload-validation-concurrency-limit branch May 30, 2026 05:15
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.

[Feature]: Add concurrency limit to VM creation errgroup [Feature]: Validate workload names before starting execution

1 participant