Skip to content

feat: deprecate v1alpha1 packages - #5623

Merged
brandtkeller merged 10 commits into
mainfrom
deprecate-v1alpha1-packages
Nov 8, 2026
Merged

brandtkeller merged 10 commits into
mainfrom
deprecate-v1alpha1-packages

Conversation

@AustinAbro321

@AustinAbro321 AustinAbro321 commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Description

Deprecates v1alpha1 packages.

I am being a bit precious with the deprecation warnings, instead of having them in a central place like pkgcfg I have them on each command as I didn't want them to show on zarf dev upgrade and zarf package remove.

Also including the name for SDK users who deploy multiple packages in the same flow.

Also updates the npm version in the netlify config because the website currently can't deploy

Related Issue

Relates to #5441

Checklist before merging

Signed-off-by: Austin Abro <austinabro321@gmail.com>
@netlify

netlify Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for zarf-docs canceled.

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

@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.08696% with 11 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/cmd/package.go 53.84% 6 Missing ⚠️
src/pkg/packager/digest.go 25.00% 3 Missing ⚠️
src/cmd/dev.go 0.00% 2 Missing ⚠️
Files with missing lines Coverage Δ
src/api/convert/convert.go 100.00% <ø> (ø)
src/api/package.go 89.47% <ø> (ø)
src/api/v1alpha1/component.go 32.20% <ø> (ø)
src/api/v1alpha1/package.go 100.00% <ø> (ø)
src/config/config.go 46.66% <ø> (ø)
src/internal/api/v1alpha1/convert.go 99.87% <ø> (ø)
src/internal/api/v1alpha1/deprecation.go 100.00% <100.00%> (ø)
src/internal/api/v1alpha1/migrate.go 100.00% <ø> (ø)
src/internal/api/v1alpha1/validate.go 90.14% <ø> (ø)
src/internal/packager/template/template.go 90.80% <ø> (ø)
... and 25 more

... and 1 file with indirect coverage changes

🚀 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.

Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
@AustinAbro321
AustinAbro321 marked this pull request as ready for review November 6, 2026 19:24
@AustinAbro321
AustinAbro321 requested review from a team as code owners November 6, 2026 19:24
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
@brandtkeller brandtkeller added the v1.0.0 Issues tracking toward Zarf v1.0.0 label Nov 7, 2026

@brandtkeller brandtkeller left a comment

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.

One comment otherwise lgtm

Comment thread src/internal/api/v1alpha1/migrate.go Outdated
if pkg.Metadata.YOLO {
warnings = append(warnings, "metadata.yolo is deprecated and will be removed in the next schema version. Use --connected when running zarf package deploy instead.")
}
if len(pkg.Variables) > 0 {

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 can be quite noisy on a v1alpha1 package pull for a package with variables/constants.

 ./build/zarf package pull ghcr.io/zarf-dev/packages/init:v0.89.0
2026-11-08 06:13:17 INF using config file location=/home/dev/Repos/work/zarf-reviews/zarf-config.toml
2026-11-08 06:13:17 WRN variables are deprecated and removed in v1beta1. Migrate to Zarf values instead
2026-11-08 06:13:17 WRN constants are deprecated and removed in v1beta1. Migrate to Zarf values instead
2026-11-08 06:13:17 WRN variables are deprecated and removed in v1beta1. Migrate to Zarf values instead
2026-11-08 06:13:17 WRN constants are deprecated and removed in v1beta1. Migrate to Zarf values instead
2026-11-08 06:13:17 INF pulling package name=ghcr.io/zarf-dev/packages/init:v0.89.0 size=422.16 MBs
2026-11-08 06:13:18 INF finished pulling package layers duration=900ms
2026-11-08 06:13:18 WRN variables are deprecated and removed in v1beta1. Migrate to Zarf values instead
2026-11-08 06:13:18 WRN constants are deprecated and removed in v1beta1. Migrate to Zarf values instead
2026-11-08 06:13:19 WRN variables are deprecated and removed in v1beta1. Migrate to Zarf values instead
2026-11-08 06:13:19 WRN constants are deprecated and removed in v1beta1. Migrate to Zarf values instead
2026-11-08 06:13:19 WRN package signature not verified; continuing reason=package was signed with keyless method; provide --certificate-identity + --certificate-oidc-issuer to verify: no verification material available
2026-11-08 06:13:19 INF writing package to disk path=/home/dev/Repos/work/zarf-reviews/zarf-init-amd64-v0.89.0.tar.zst
2026-11-08 06:13:20 WRN v1alpha1 packages are deprecated and do not have long-term support in Zarf v1.0; migrate to zarf.dev/v1beta1. package=init
2026-11-08 06:13:20 INF package downloaded successful path=/home/dev/Repos/work/zarf-reviews/zarf-init-amd64-v0.89.0.tar.zst

Would we consider another option or are we fine with this? Possibly a few other areas where we see some duplicates - not a blocker.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I thought about it and this warning would be especially confusing to deployers since they can't move to package values. I decided to make this a create / dev time error only, lmk what you think

Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>

@brandtkeller brandtkeller left a comment

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.

lgtm

@brandtkeller
brandtkeller added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit b0ca5a9 Nov 8, 2026
31 checks passed
@brandtkeller
brandtkeller deleted the deprecate-v1alpha1-packages branch November 8, 2026 20:55
@github-project-automation github-project-automation Bot moved this to Done in Zarf Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1.0.0 Issues tracking toward Zarf v1.0.0

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants