Skip to content

feat: introduce v1beta1 init package - #5453

Merged
brandtkeller merged 60 commits into
mainfrom
v1beta1/init-package
Oct 29, 2026
Merged

brandtkeller merged 60 commits into
mainfrom
v1beta1/init-package

Conversation

@AustinAbro321

@AustinAbro321 AustinAbro321 commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Description

Introduce v1beta1 init package.

Adds a .State.Agent.MutationPolicy which was missed when the field was originally added.

An interesting decision if the init package and sub-components should continue to be versioned alongside the CLI. I think for compatibility purposes, it makes sense to continue to do that for now, however, as we implement different checks to decouple this, I believe it we can separate this in the future. See zarf-dev/proposals#64

This introduces a workflow to publish the v1beta1 package and components, with a workflow dispatch to test it out.

Related Issue

Fixes #5424

Checklist before merging

@netlify

netlify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for zarf-docs ready!

Name Link
🔨 Latest commit fae2551
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/6ac92fb291ff96000888e9b9
😎 Deploy Preview https://deploy-preview-5453--zarf-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for zarf-docs canceled.

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

@codecov

codecov Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 46.42857% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/internal/packager/helm/zarf.go 0.00% 14 Missing ⚠️
src/cmd/internal.go 50.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/api/v1alpha1/component.go 32.20% <ø> (ø)
src/api/v1beta1/component.go 100.00% <100.00%> (ø)
src/internal/packager/helm/post-render.go 49.83% <ø> (ø)
src/pkg/state/state.go 78.09% <100.00%> (+0.09%) ⬆️
src/pkg/template/template.go 89.03% <100.00%> (+0.09%) ⬆️
src/cmd/internal.go 34.81% <50.00%> (+0.42%) ⬆️
src/internal/packager/helm/zarf.go 0.00% <0.00%> (ø)

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

Base automatically changed from introduce-v1beta1-init-config to main October 14, 2026 20:58
@AustinAbro321
AustinAbro321 force-pushed the v1beta1/init-package branch 2 times, most recently from 700c6c6 to df45176 Compare October 15, 2026 19:17
@AustinAbro321
AustinAbro321 removed this pull request from stack #5454 October 16, 2026 19:17
@AustinAbro321
AustinAbro321 changed the base branch from main to add-id-to-image-object October 16, 2026 19:17
@AustinAbro321
AustinAbro321 added this pull request to stack #5484 October 16, 2026 19:18
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>
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>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
AustinAbro321 and others added 6 commits October 23, 2026 13:03
Co-authored-by: Brandt Keller <43887158+brandtkeller@users.noreply.github.com>
Signed-off-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.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>
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>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
@AustinAbro321
AustinAbro321 removed this pull request from stack #5484 October 26, 2026 19:17
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>
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 October 26, 2026 21:47
@AustinAbro321
AustinAbro321 requested review from a team as code owners October 26, 2026 21:47

@soltysh soltysh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few comments/suggestions

username: dummy
password: ${{ github.token }}

- name: Build v1beta1 Init Packages

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can this be shared with

- name: Build Init Packages
run: |
make release-init-package ARCH=amd64 AGENT_IMAGE_TAG=$CLI_VERSION
make release-init-package ARCH=arm64 AGENT_IMAGE_TAG=$CLI_VERSION
- name: Sign Init Packages
run: |
build/zarf package sign build/zarf-init-amd64-$CLI_VERSION.tar.zst \
--keyless \
--confirm
build/zarf package sign build/zarf-init-arm64-$CLI_VERSION.tar.zst \
--keyless \
--confirm
- name: Publish Init Package as OCI and Skeleton
run: |
CLI_VERSION=$CLI_VERSION make publish-init-package ARCH=amd64 REPOSITORY_URL=ghcr.io/zarf-dev/packages
CLI_VERSION=$CLI_VERSION make publish-init-package ARCH=arm64 REPOSITORY_URL=ghcr.io/zarf-dev/packages
- name: Upload build artifacts
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: build-artifacts
path: build/
retention-days: 1
?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

and parametrized?

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 tried this and didn't love it, as we'd need to parameterize and accept make targets which feels a bit off to me.

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>
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 - this is huge and I tried to throw what I could think of at it and it all worked as expected.

@brandtkeller
brandtkeller added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 56a4b59 Oct 29, 2026
42 checks passed
@brandtkeller
brandtkeller deleted the v1beta1/init-package branch October 29, 2026 18:47
@github-project-automation github-project-automation Bot moved this to Done in Zarf Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Create v1beta1 init package

3 participants