Skip to content

feat: improve v1beta1 component config override import logic - #5474

Merged
AustinAbro321 merged 11 commits into
mainfrom
component-config-override-importability
Oct 27, 2026
Merged

AustinAbro321 merged 11 commits into
mainfrom
component-config-override-importability

Conversation

@AustinAbro321

@AustinAbro321 AustinAbro321 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Description

There are some ways in which v1beta1 does not match the importability of v1alpha1. For instance, you cannot change namespace of a chart as you could before.

What you lose that you could change in v1alpha1 is the chart URL, but I think at that point it probably makes sense to have a different component.

Also components now go through validation before they're published. Technically not needed as some required items could be set through future imports, but I think it makes sense for published components to be valid to start and then be overwritten

Related Issue

Relates to #3433

Checklist before merging

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>
@netlify

netlify Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

βœ… Deploy Preview for zarf-docs ready!

Name Link
πŸ”¨ Latest commit 29300a6
πŸ” Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/6adfaa66ecac892f41dd30b6
😎 Deploy Preview https://deploy-preview-5474--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.

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

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.

Files with missing lines Coverage Ξ”
src/api/v1beta1/component.go 100.00% <ΓΈ> (ΓΈ)
src/internal/api/v1beta1/validate.go 95.63% <100.00%> (+0.56%) ⬆️
src/pkg/packager/load/component.go 78.04% <100.00%> (-4.31%) ⬇️
src/pkg/packager/load/import_v1beta1.go 81.40% <100.00%> (+0.28%) ⬆️
src/pkg/packager/load/import_v1beta1_merge.go 82.56% <100.00%> (+9.73%) ⬆️
src/pkg/packager/load/load.go 74.04% <ΓΈ> (-0.68%) ⬇️

... and 2 files 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.

@AustinAbro321
AustinAbro321 force-pushed the component-config-override-importability branch from 03f21e8 to 3043e31 Compare October 26, 2026 14:59
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 16:07
@AustinAbro321
AustinAbro321 requested review from a team as code owners October 26, 2026 16:07
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
"flavor", flavor,
)

if !hasFlavoredComponentV1Beta1(pkg, flavor) {

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.

Decided to remove this as I noticed there is a bug where this activates if the flavor is only used by component variants. We could track variants separately, but seems a bit complex for a warning log

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

lgtm

@AustinAbro321
AustinAbro321 added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit ef307ca Oct 27, 2026
31 checks passed
@AustinAbro321
AustinAbro321 deleted the component-config-override-importability branch October 27, 2026 13:35
@github-project-automation github-project-automation Bot moved this to Done in Zarf Oct 27, 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.

2 participants