zarf icon indicating copy to clipboard operation
zarf copied to clipboard

`--max-package-size` Flag fails to split zarf package, Impacts package integrity

Open tmnolkemper opened this issue 1 year ago • 1 comments

Environment

Device and OS: Apple Macbook Pro, MacOS Sonoma 14.3.1 App version: 0.32.3 Kubernetes distro being used: k3s Other:

Steps to reproduce

  1. Run zarf package create --confirm --max-package-size=4500 --log-level=info

Expected result

Package compiles and separates into equal parts at/below set size limit, package can be inspected and deployed with zarf package inspect and zarf package deploy commands. Package recompiles into single part when said commands are run.

Actual Result

Package compiles into inequal parts (one large part.000 and several smaller parts). Package cannot be inspected or deployed because package integrity check fails. Package does not recompile into single tar.zst when zarf package inspect or zarf package deploy are ran against it.

Visual Proof (screenshots, videos, text, etc)

Screenshot 2024-02-22 at 11 26 09 AM Screenshot 2024-02-22 at 11 26 35 AM Screenshot 2024-02-22 at 11 27 38 AM

Severity/Priority

Additional Context

Add any other context or screenshots about the technical debt here.

tmnolkemper avatar Feb 22 '24 16:02 tmnolkemper

Possible duplicate of https://github.com/defenseunicorns/zarf/issues/2313, resolved by https://github.com/defenseunicorns/zarf/pull/2314. Will be included in the next release (v0.32.4+).

In the meantime I would downgrade Zarf to v0.32.2 as @daniel-palmer-gu suggested.

If you want to verify the upcoming Zarf version will fix your issue, please can build off main and let us know!

Noxsios avatar Feb 22 '24 16:02 Noxsios

Closing as this should be fixed now in Zarf v0.32.4+

Noxsios avatar Mar 06 '24 19:03 Noxsios