Skip to content

emit event upon filesystem resize completion - #31

Draft
boddumanohar wants to merge 1 commit into
mainfrom
xfs-resize
Draft

emit event upon filesystem resize completion#31
boddumanohar wants to merge 1 commit into
mainfrom
xfs-resize

Conversation

@boddumanohar

@boddumanohar boddumanohar commented Mar 20, 2026

Copy link
Copy Markdown
Member
  • neonvm runner: emit filesystem resize completion as an event on PVC

@boddumanohar
boddumanohar marked this pull request as ready for review March 20, 2026 14:48
@github-actions

github-actions Bot commented Mar 20, 2026

Copy link
Copy Markdown
No changes to the coverage.

HTML Report

Click to open

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for XFS filesystem growth and introduces a mechanism for the neonvm-runner to signal guest filesystem resize completion by emitting Kubernetes Events on the backing PVC.

Changes:

  • Detect filesystem type in neonvm-daemon and switch to xfs_growfs for XFS volumes.
  • Pass pod namespace into the runner and add best-effort Kubernetes Event emission on PVC resize success/failure.
  • Add RBAC manifests intended to allow Event creation.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pkg/neonvm/controllers/vm_controller.go Adds K8S_POD_NAMESPACE env var to the runner container.
neonvm-runner/image-loader/bases/rbac.yaml Introduces SA/ClusterRole/ClusterRoleBinding to allow creating Events.
neonvm-runner/image-loader/bases/kustomization.yaml Includes the new RBAC resource in the image-loader base.
neonvm-runner/cmd/main.go Builds an in-cluster client (best-effort) and emits PVC Events on resize success/failure.
neonvm-runner/cmd/disks.go Tracks PVC name per block device to associate Events with the correct PVC.
neonvm-daemon/cmd/main.go Adds fs type detection via blkid and selects xfs_growfs vs resize2fs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread neonvm-runner/image-loader/bases/kustomization.yaml Outdated
Comment thread neonvm-daemon/cmd/main.go
Comment thread neonvm-runner/cmd/disks.go Outdated
Comment thread pkg/neonvm/controllers/vm_controller.go
Comment thread neonvm-runner/image-loader/bases/rbac.yaml Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread neonvm-daemon/cmd/main.go
Comment thread pkg/neonvm/controllers/vm_controller.go
Comment thread pkg/neonvm/controllers/vm_controller.go
Comment thread deploy/kustomize/kustomization.yaml Outdated
Comment thread deploy/kustomize/kustomization.yaml Outdated
Comment thread deploy/kustomize/neonvm-runner-rbac.yaml
Comment thread neonvm-runner/cmd/main.go Outdated
@boddumanohar boddumanohar changed the title xfs resize emit event upon filesystem resize completion Mar 25, 2026
@boddumanohar
boddumanohar marked this pull request as draft April 8, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants