Skip to content

Conversation

@neogopher
Copy link
Contributor

@neogopher neogopher commented Nov 4, 2025

What issue type does this pull request address? (keep at least one, remove the others)
/kind bugfix

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves ENG-9486

Please provide a short message that should be published in the vcluster release notes
vCluster will now automatically restore the cluster.yaml configuration while restoring from a snapshot

What else do we need to know?


Note

Load Helm release values from snapshot, merge with defaults, use for restore/config parsing, and write to vc-config-* Secret; CLI consumes snapshot values/versions during --restore.

  • Restore pipeline:
    • Add snapshot.GetVClusterReleaseFromSnapshot to extract HelmRelease from snapshot.
    • Merge release values with defaults (mergeWithDefaults) and parse config via config.ParseConfigBytes.
    • Initialize clients (InitClients) and use merged config for restore validation.
    • Persist merged values to Secret vc-config-<name> (config.yaml).
    • Refactor createRestoreRequest to use internal o.vConfig.
  • CLI (pkg/cli/create_helm.go):
    • Use snapshot.GetVClusterReleaseFromSnapshot to fetch config on --restore.
    • Auto-set cmd.ChartVersion from snapshot release and temp-write values for install/upgrade.

Written by Cursor Bugbot for commit 4d888da. This will update automatically on new commits. Configure here.

@neogopher neogopher requested a review from a team as a code owner November 4, 2025 11:28
@neogopher neogopher marked this pull request as draft November 4, 2025 11:44
@neogopher neogopher force-pushed the snapshot-restore-vcluster-config branch 2 times, most recently from 0d06495 to 40ba2e6 Compare November 4, 2025 14:21
@neogopher neogopher force-pushed the snapshot-restore-vcluster-config branch from 40ba2e6 to 4d888da Compare November 4, 2025 15:01
@neogopher neogopher marked this pull request as ready for review November 4, 2025 15:36
@pascalbreuninger
Copy link
Member

@claude Please review this PR and suggest improvements

@pascalbreuninger
Copy link
Member

bugbot run

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

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