Skip to content

kubevirt-cdi: the CDI CR enables ExpandDisks, which is a KubeVirt gate and not a CDI one #4112

Closed

Description

packages/system/kubevirt-cdi/templates/cdi-cr.yaml:23 lists ExpandDisks under spec.config.featureGates. CDI has no gate by that name. At v1.66.1 pkg/feature-gates/feature-gates.go declares exactly three — HonorWaitForFirstConsumer, DataVolumeClaimAdoption, and WebhookPvcRendering, the last kept only so that an older CR still parses. ExpandDisks is KubeVirt's, registered there as ExpandDisksGate and GA since v1.8.0.

Nothing rejects the stray entry. isFeatureGateEnabled walks the list looking for one specific string, so a name no caller asks about is read and dropped. The CR has carried it since 2024-08-30 without a complaint from any cluster, which is what an ignored value looks like rather than evidence that it does something.

The commit that introduced it added ExpandDisks to packages/system/kubevirt/templates/kubevirt-cr.yaml in the same edit, and there it is right: that is the CR the gate is for, and disk expansion works because of that line. Only the CDI copy is misplaced.

The fix is to delete the line, and it is worth doing rather than shrugging at. Someone reading the CDI CR to find out which gates the platform turns on gets a wrong answer, and anyone later tracing why disk expansion works can credit the wrong component and then "fix" the wrong one.

Timing matters slightly. #4107 makes templates/cdi-cr.yaml explicitly hand-maintained and adds a suite over it, so after that lands the deletion has an obvious place to be pinned; doing it first would collide with that PR in the same file.

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug
    area/virtualizationIssues or PRs related to virtualization (kubevirt, cdi, vmi, vm-import)
    on Sep 7, 2026
  2. added
    triage/acceptedIndicates an issue is ready to be actively worked on
    priority/backlogGeneral backlog priority. Lower than priority/important-longterm
    and removed
    triage/needs-triageIndicates an issue needs triage by a maintainer
    on Sep 23, 2026
  3. added a commit that references this issue on Sep 23, 2026
    5e46060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/virtualizationIssues or PRs related to virtualization (kubevirt, cdi, vmi, vm-import)kind/bugCategorizes issue or PR as related to a bugpriority/backlogGeneral backlog priority. Lower than priority/important-longtermtriage/acceptedIndicates an issue is ready to be actively worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions