Skip to content

Conversation

@mkcp
Copy link
Contributor

@mkcp mkcp commented Oct 6, 2025

Description

This PR adds the --set-values flag with e2e coverage and examples documentation and adds --set-variables which is an alias for the current behavior of --set. The reason for --set-variables is to have logical parity with the new flag, and swap over --set to --set-values at some point in the future. This allows us to already have a deprecation path ready for users, and to ensure the flags are self-documenting in the mean time.

Do not merge this PR until #4136 is merged into main.

Related Issue

Fixes #4224

Checklist before merging

mkcp added 30 commits September 29, 2025 13:12
Signed-off-by: Kit Patella <[email protected]>
…flags to package create,deploy and inspect cmds with --set

Signed-off-by: Kit Patella <[email protected]>
Signed-off-by: Kit Patella <[email protected]>
Signed-off-by: Kit Patella <[email protected]>
Signed-off-by: Kit Patella <[email protected]>
Signed-off-by: Kit Patella <[email protected]>
…n using zarf to helm values mappings

Signed-off-by: Kit Patella <[email protected]>
Signed-off-by: Kit Patella <[email protected]>
Signed-off-by: Kit Patella <[email protected]>
mkcp added 13 commits October 2, 2025 13:57
…d ensure value.Extract has unit test coverage

Signed-off-by: Kit Patella <[email protected]>
…d rework SetValue parsing and setting into its own function that is also tested.

Signed-off-by: Kit Patella <[email protected]>
…emplate - and default to false

Signed-off-by: Kit Patella <[email protected]>
Signed-off-by: Kit Patella <[email protected]>
@mkcp mkcp self-assigned this Oct 6, 2025
@mkcp mkcp requested review from a team as code owners October 6, 2025 18:45
@netlify
Copy link

netlify bot commented Oct 6, 2025

Deploy Preview for zarf-docs ready!

Name Link
🔨 Latest commit 6339774
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/68e40edbe40f280008561480
😎 Deploy Preview https://deploy-preview-4236--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: Kit Patella <[email protected]>
@mkcp mkcp changed the title Add --set-values and --set-variables flags feat(values): Add --set-values and --set-variables flags Oct 6, 2025
@mkcp mkcp changed the base branch from main to mkcp/values October 6, 2025 18:55
Comment on lines +26 to +27
--create-set stringToString [alias for --set-variables] Specify package variables to set on the command line (KEY=value) (default [])
--deploy-set stringToString [alias for --set-variables] Specify deployment variables to set on the command line (KEY=value) (default [])
Copy link
Contributor Author

@mkcp mkcp Oct 6, 2025

Choose a reason for hiding this comment

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

This was an unexpected result from changing the other flags. Need to look more into how dev deploy is generated and see about --create-set-variables --deploy-set-variables and --deploy-set-values

@codecov
Copy link

codecov bot commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 30.76923% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/cmd/package.go 25.00% 9 Missing ⚠️
Files with missing lines Coverage Δ
src/cmd/initialize.go 27.43% <100.00%> (+0.32%) ⬆️
src/cmd/viper.go 54.76% <ø> (ø)
src/cmd/package.go 38.35% <25.00%> (-1.21%) ⬇️

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

@mkcp mkcp added the v1.0.0 Issues tracking toward Zarf v1.0.0 label Oct 15, 2025
Base automatically changed from mkcp/values to main October 16, 2025 20:17
@brandtkeller brandtkeller moved this to In progress in Zarf Oct 24, 2025
@mkcp mkcp marked this pull request as draft October 29, 2025 23:20
@mkcp mkcp moved this from In progress to Next in Zarf Dec 2, 2025
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: Next

Development

Successfully merging this pull request may close these issues.

Add --set-value flag for granular values key overrides

2 participants