Skip to content

fix: name diskSelector in UnattendedInstallConfig validation errors - #14214

Merged
talos-bot merged 1 commit into
siderolabs:mainfrom
oscrx:fix/unattended-install-diskselector-error
Sep 2, 2026
Merged

fix: name diskSelector in UnattendedInstallConfig validation errors#14214
talos-bot merged 1 commit into
siderolabs:mainfrom
oscrx:fix/unattended-install-diskselector-error

Conversation

@oscrx

@oscrx oscrx commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

What? (description)

ProvisioningSpec.Validate names provisioning.volumeSelector.match, but the field is provisioning.diskSelector — there is no volumeSelector key anywhere in UnattendedInstallConfig.

Changes the two strings, the three test assertions covering them, and one subtest name. No behaviour change.

Why? (reasoning)

Fixes #14213.

Both strings are byte-identical to the ones in LVMVolumeGroupConfig and RAIDArrayConfig, where volumeSelector is the correct field name. This type looks to have been derived from one of those and the field renamed to diskSelector without the messages following. Present since 4160737, the type's first commit.

Backport to release-1.14? This is the first error some people will meet on 1.14 — at least one config generator currently emits provisioning: {}, so the message lands before anything else does. It would be good to have in 1.14.0 rather than waiting for 1.15. Happy to open the backport PR if you want it.

Acceptance

  • you linked an issue (if applicable) — UnattendedInstallConfig validation error names volumeSelector, but the field is diskSelector #14213
  • you included tests (if applicable) — updated the three existing assertions. Changing those first made all three subtests fail against the old strings, which confirmed they cover every site this PR touches.
  • you ran conformance (make conformance)
  • you formatted your code (make fmt)
  • you linted your code (make lint)
  • you generated documentation (make docs)
  • you ran unit-tests (make unit-tests)

@github-project-automation github-project-automation Bot moved this to To Do in Planning Sep 1, 2026
@talos-bot talos-bot moved this from To Do to In Review in Planning Sep 1, 2026
@smira
smira requested a review from shanduur September 2, 2026 08:00
@github-project-automation github-project-automation Bot moved this from In Review to Approved in Planning Sep 2, 2026
@shanduur shanduur mentioned this pull request Sep 2, 2026
46 tasks
`ProvisioningSpec.Validate` reported `provisioning.volumeSelector.match`,
but the field is `provisioning.diskSelector`. There is no `volumeSelector`
key in `UnattendedInstallConfig`, so the message pointed at a field that
does not exist.

Both strings are identical to the ones in `LVMVolumeGroupConfig` and
`RAIDArrayConfig`, where `volumeSelector` is the correct name; this type
appears to have been derived from one of those and the field renamed to
`diskSelector` without the messages following.

Signed-off-by: Oscar Wieman <oscar@oscarr.nl>
@shanduur
shanduur force-pushed the fix/unattended-install-diskselector-error branch from 7178e36 to 7fd43a4 Compare September 2, 2026 10:15
@shanduur

shanduur commented Sep 2, 2026

Copy link
Copy Markdown
Member

/m

@talos-bot
talos-bot merged commit 7fd43a4 into siderolabs:main Sep 2, 2026
70 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in Planning Sep 2, 2026
@shanduur shanduur moved this from Proposed to In Progress in Backports to v1.14 Sep 2, 2026
@shanduur shanduur moved this from In Progress to Backported in Backports to v1.14 Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Backported
Archived in project

Development

Successfully merging this pull request may close these issues.

UnattendedInstallConfig validation error names volumeSelector, but the field is diskSelector

3 participants