Skip to content

fix: remove dead inline userdata branch in BuildVMSpec#195

Merged
mrhillsman merged 1 commit into
mainfrom
183-remove-dead-inline-userdata-branch
Jun 13, 2026
Merged

fix: remove dead inline userdata branch in BuildVMSpec#195
mrhillsman merged 1 commit into
mainfrom
183-remove-dead-inline-userdata-branch

Conversation

@mrhillsman

Copy link
Copy Markdown
Contributor

Summary

The orchestrator always creates a cloud-init Secret and sets CloudInitSecretName before calling BuildVMSpec, so the else branch that inlined UserData was dead code. Remove it along with the CloudInitUserdata field from VMSpecOpts, and validate that CloudInitSecretName is always provided.

Resolves #183

@exe-prow-github-app exe-prow-github-app Bot requested a review from OchiengEd June 13, 2026 16:27
@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 Jun 13, 2026
@mrhillsman mrhillsman removed the request for review from OchiengEd June 13, 2026 16:27
The orchestrator always creates a cloud-init Secret and sets
CloudInitSecretName before calling BuildVMSpec, so the else branch
that inlined UserData was dead code. Remove it along with the
CloudInitUserdata field from VMSpecOpts, and validate that
CloudInitSecretName is always provided.

Resolves #183

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@mrhillsman mrhillsman force-pushed the 183-remove-dead-inline-userdata-branch branch from fa755ae to cf5a889 Compare June 13, 2026 16:28
@mrhillsman mrhillsman merged commit c3cb979 into main Jun 13, 2026
3 of 4 checks passed
@mrhillsman mrhillsman deleted the 183-remove-dead-inline-userdata-branch branch June 15, 2026 03:34
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.

[Tech Debt]: Remove dead inline userdata branch in internal/vm/vm.go

1 participant