Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Jul 19, 2025

Description

This automates the migration from the Helm chart version 0.6.2 to >= v0.19.1.

Why is this needed

Fixes: #124

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

@codecov
Copy link

codecov bot commented Jul 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.38%. Comparing base (21f626a) to head (a42ae71).
Report is 16 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #260   +/-   ##
=======================================
  Coverage   48.38%   48.38%           
=======================================
  Files         102      102           
  Lines        8649     8649           
=======================================
  Hits         4185     4185           
  Misses       4209     4209           
  Partials      255      255           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jacobweinstock jacobweinstock marked this pull request as ready for review July 24, 2025 15:34
This automates tbe migration from the Helm chart
version 0.6.2 to v0.19.1.

Signed-off-by: Jacob Weinstock <[email protected]>
Also, rename the migration file to be
named to reference all v0.19 versions.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock changed the title WIP: Add subcommand to migrate to new helm values.yaml: Add subcommand to migrate to new helm values.yaml: Jul 24, 2025
This means that no Go code is needed to be written
and maintained.

Signed-off-by: Jacob Weinstock <[email protected]>
The previous chart would install CRDs
using the Helm install's kubeconfig permissions
not the permissions of the tink-stack.
This means that the rbac from v0.6.2 could
be "role". This causes the v0.19.x Tinkerbell
to fail to install CRDs because of
insufficient permissions. Users can override
this by modifying the v0.19.x values.

Signed-off-by: Jacob Weinstock <[email protected]>
These are the updated instructions
using the helm only migration process.

Signed-off-by: Jacob Weinstock <[email protected]>
We can do the same thing with Helm.
This means less new code to maintain.

Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock requested a review from Copilot July 24, 2025 19:24
Copilot

This comment was marked as outdated.

Docs and missed templated value.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock requested a review from Copilot July 24, 2025 19:29
Copilot

This comment was marked as outdated.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock requested a review from Copilot July 24, 2025 19:32
Copilot

This comment was marked as outdated.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock requested a review from Copilot July 24, 2025 19:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds migration functionality to help users upgrade from the deprecated Tinkerbell Helm chart version 0.6.2 to the newer v0.19.x format. The migration automates the conversion of values.yaml configuration between the two chart versions.

  • Introduces a migration template that converts 0.6.2 values to v0.19.x format
  • Adds configuration option to enable migration functionality
  • Provides comprehensive documentation with step-by-step migration instructions

Reviewed Changes

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

File Description
helm/tinkerbell/values.yaml Adds migration configuration option with documentation reference
helm/tinkerbell/templates/migration/from-0.6.2.yaml Template that maps old chart values to new format for automated migration
docs/technical/HELM_VALUES_MIGRATION.md Complete migration guide with prerequisites, steps, and examples

@jacobweinstock jacobweinstock added the ready-to-merge Signal Mergify to merge the PR label Jul 24, 2025
mergify bot added a commit that referenced this pull request Jul 24, 2025
@mergify mergify bot merged commit 360e8c1 into tinkerbell:main Jul 24, 2025
11 checks passed
@jacobweinstock jacobweinstock changed the title Add subcommand to migrate to new helm values.yaml: Add Helm values.yaml migration process and docs: Jul 24, 2025
@jacobweinstock jacobweinstock deleted the helm-values-migrate branch August 20, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

helm-chart ready-to-merge Signal Mergify to merge the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration process from existing Helm deployments

1 participant