Skip to content

feat!: state enhancement updates - #5525

Merged
brandtkeller merged 28 commits into
mainfrom
5458_enhanced_state
Nov 6, 2026
Merged

brandtkeller merged 28 commits into
mainfrom
5458_enhanced_state

Conversation

@brandtkeller

@brandtkeller brandtkeller commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Description

This implements the package secret updates from ZEP-0026 which include package lifecycle history and component lifecycle state as well as structured deploy/removal config.

Observe the changes to the state secret for a package deployment and the impacts of package-external deployment configuration that is now tracked in the package secret.

one of the bigger constraints of this change is the filtering logic. In order to track which optional components were selected in the DeployConfig - we have to pass the same data to Load and Deploy. Load filters components while deploy records the selectors used. This could be a point of contention for requiring these to be synchronized but it introduces the least amount of complexity around filter handling.

Related Issue

Fixes #5458

Checklist before merging

@netlify

netlify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for zarf-docs canceled.

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

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 67.94658% with 192 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pkg/packager/deploy.go 58.38% 45 Missing and 17 partials ⚠️
src/internal/cli/selection/deploy.go 48.80% 43 Missing ⚠️
src/cmd/package.go 0.00% 39 Missing ⚠️
src/pkg/packager/remove.go 73.43% 11 Missing and 6 partials ⚠️
src/cmd/initialize.go 0.00% 9 Missing ⚠️
src/pkg/packager/filters/deploy.go 88.67% 4 Missing and 2 partials ⚠️
src/pkg/state/state.go 93.47% 4 Missing and 2 partials ⚠️
src/pkg/cluster/zarf.go 37.50% 3 Missing and 2 partials ⚠️
src/pkg/packager/assemble/assemble.go 50.00% 2 Missing and 1 partial ⚠️
src/pkg/packager/dev.go 87.50% 1 Missing and 1 partial ⚠️
Files with missing lines Coverage Δ
src/api/package.go 89.47% <100.00%> (+2.37%) ⬆️
src/pkg/packager/create.go 60.30% <100.00%> (ø)
src/pkg/packager/filters/select.go 87.50% <100.00%> (+1.78%) ⬆️
src/pkg/packager/filters/strat.go 90.00% <100.00%> (+17.27%) ⬆️
src/pkg/packager/filters/utils.go 100.00% <100.00%> (ø)
src/pkg/packager/layout/package.go 71.12% <100.00%> (+0.07%) ⬆️
src/pkg/packager/load.go 66.06% <ø> (-0.21%) ⬇️
src/pkg/packager/packager.go 78.65% <ø> (ø)
src/pkg/packager/pull.go 54.62% <ø> (ø)
src/pkg/packager/dev.go 78.57% <87.50%> (+15.29%) ⬆️
... and 9 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: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
@brandtkeller
brandtkeller marked this pull request as ready for review November 1, 2026 22:30
@brandtkeller
brandtkeller requested review from a team as code owners November 1, 2026 22:30
Comment thread src/pkg/state/state.go Resolved
Comment thread src/pkg/packager/deploy.go Resolved
Comment thread src/cmd/package.go Resolved
Comment thread src/pkg/packager/deploy.go Resolved
Comment thread src/pkg/packager/deploy.go Resolved
Comment thread src/pkg/packager/deploy.go Resolved
Comment thread src/pkg/packager/deploy.go Resolved
Comment thread src/pkg/packager/dev.go Resolved
Comment thread src/pkg/packager/dev.go Resolved
Comment thread src/pkg/packager/deploy.go Resolved
@github-project-automation github-project-automation Bot moved this to In progress in Zarf Nov 2, 2026
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>

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

A few more comments around filtering, overall coming together

Comment thread src/pkg/packager/deploy.go Resolved
Comment thread src/pkg/packager/filters/utils.go Resolved
Comment thread src/pkg/packager/dev.go Resolved
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Comment thread src/cmd/package.go Resolved
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
@brandtkeller brandtkeller mentioned this pull request Nov 4, 2026
2 tasks done
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Comment thread src/pkg/packager/remove.go Resolved
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Comment thread src/pkg/state/state.go Resolved

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

Generally looks good after merge errors, we should call this a feat!, not a refactor

Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
@brandtkeller brandtkeller changed the title refactor!: state enhancement updates feat!: state enhancement updates Nov 5, 2026
@brandtkeller
brandtkeller added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 517db72 Nov 6, 2026
32 checks passed
@brandtkeller
brandtkeller deleted the 5458_enhanced_state branch November 6, 2026 01:24
@github-project-automation github-project-automation Bot moved this from In progress to Done in Zarf Nov 6, 2026
@AustinAbro321 AustinAbro321 mentioned this pull request Nov 6, 2026
2 tasks
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.

Enhance package secret

2 participants