Skip to content

chore(examples): refresh longhorn example to v1.11.2#4923

Open
acald-creator wants to merge 4 commits into
zarf-dev:mainfrom
acald-creator:upgrade-longhorn
Open

chore(examples): refresh longhorn example to v1.11.2#4923
acald-creator wants to merge 4 commits into
zarf-dev:mainfrom
acald-creator:upgrade-longhorn

Conversation

@acald-creator
Copy link
Copy Markdown

Description

Updates the examples/longhorn package from the legacy v1.4.0 setup to current Longhorn v1.11.2, and replaces the old environment check script flow with longhornctl preflight checks.

Changes

  • Bump Longhorn package/chart versions:
    • metadata.version -> 1.11.2
    • charts[].version -> 1.11.2
  • Replace longhorn-environment-check component with longhornctl
    • Download longhornctl binary from the v1.11.2 release
    • Update onDeploy to run:
      • ./longhornctl check preflight
  • Regenerate pinned images: list for the updated chart/image set
  • Refresh examples/longhorn/values.yaml to minimal K3s override only

Validation

./build/zarf package create examples/longhorn -o build -a amd64 --confirm

build/zarf-package-longhorn-amd64-1.11.2.tar.zst

Related Issue

Fixes #4875

Checklist before merging

Signed-off-by: Antonette Caldwell <18711313+acald-creator@users.noreply.github.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 22, 2026

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 3e7f9f2
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/6a1a36e66c795d00087a5404

@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AustinAbro321
Copy link
Copy Markdown
Member

Hey @acald-creator thanks for the PR! Is this ready for a review? If so move it out of draft and we will take a look

@acald-creator acald-creator marked this pull request as ready for review May 28, 2026 23:50
@acald-creator acald-creator requested review from a team as code owners May 28, 2026 23:50
@acald-creator
Copy link
Copy Markdown
Author

@AustinAbro321 ready for review

@AustinAbro321
Copy link
Copy Markdown
Member

@acald-creator did you get this to deploy successfully? I am trying locally and running into problems

@acald-creator
Copy link
Copy Markdown
Author

@AustinAbro321 let me take a look

…try config

Signed-off-by: Antonette Caldwell <18711313+acald-creator@users.noreply.github.com>
@acald-creator
Copy link
Copy Markdown
Author

acald-creator commented May 29, 2026

@AustinAbro321 I tested deployment on kind and k3s, and it deployed successfully for me

Copy link
Copy Markdown
Member

@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on! A few thoughts but otherwise I think the only thing we need to do is validate functionality.

  • Package creates successfully
  • Package deploys successfully (preferably offline but I can test that if you can't)
  • Validate operational functionality (can we deploy a workload that has a persistent volume requirement)

Comment thread examples/longhorn/zarf.yaml Outdated
- source: https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
target: jq
shasum: af986793a515d500ab2d35f8d2aecd656e764504b789b66d7e1a0b727a124c44
- source: https://github.com/longhorn/cli/releases/download/v1.11.2/longhornctl-linux-amd64
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This script is indeed no longer available but introducing a binary will add a fair bit of complexity (IE this cannot be used with arm64 as written and making this architecture aware could be complex).

Two suggestions:

  1. Look at any "portable" solutions we might be able to leverage
  2. remove the environment check / longhornctl component entirely

For ease of update - I think it is valid to remove that component and document any prerequisites in the package documentation.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I was thinking about that, I wanted to try it out and see how longhornctl would looks like, but I think that removing the component would be best and document any prerequisites.

I can look into your suggestions in the meantime.

Comment thread examples/longhorn/values.yaml Outdated
selector: []
removeSnapshotsDuringFilesystemTrim: ignored # "enabled" or "disabled" otherwise

# Keep this file minimal so we inherit Longhorn chart defaults.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I tend to agree here in sentiment but the current capabiltiies of zarf dev|package inspect values-files do offer some capability to airgapped environments if we have re-specified the whole values file (or at least what is pertinent).

I'd lean towards maintaining the copy but feel free to push back.

Copy link
Copy Markdown
Author

@acald-creator acald-creator May 30, 2026

Choose a reason for hiding this comment

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

Thank you for your feedback, I am still learning Zarf, so I will look more into zarf's current capabilities, and look more into this.

@github-project-automation github-project-automation Bot moved this to In progress in Zarf May 30, 2026
…lti-arch support

Signed-off-by: Antonette Caldwell <18711313+acald-creator@users.noreply.github.com>
… overrides

Signed-off-by: Antonette Caldwell <18711313+acald-creator@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Upgrade longhorn example package to latest version

3 participants