-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declared variables not reflected in package preview prompt #1124
Comments
I think my ideal output would indicate a diff from the defaults -- something like:
But I don't see a good way to get there without hacking apart the yaml printing or (jankily) replacing the in-memory default string. It's not pretty, and I'm not sure I'm advocating for it... but for discussion's sake.. |
Having the ability to see what a Should we spin that off into a separate issue? |
Kicking back to 5/9 milestone. |
Also agree @blancharda - we probably wouldn't be able to do it (at least well) on the k8s resources themselves but could diff the package yaml in the package we are about to deploy with the package yaml that is in the package secret (if it exists) in the cluster. |
Kicking back to 5/16 to get more design cycles in |
After design cycles from @Madeline-UX the TODO is:
|
## Description This adds set variables to the package preview prompt ## Related Issue Fixes #1124 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [X] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed
Overview
When overriding a variable using
--set
at deploy time, the default value (rather than the declared value) is shown in the package preview. The variable is correctly overriden if the user continues with the deploy, and the prompt is technically correct -- it explicitly shows the default value - but the behavior seems unclear / unexpected.Environment
OS: MacOS Ventura, Ubuntu
App version:
0.22.2
Steps to reproduce
zarf package deploy --set <var>=<value>
Expected result
Variable should indicate the
<value>
provided via--set
Actual Result
Variable indicates the default value defined int the zarf yaml
Example
zarf.yaml
:Sample deploy prompt:
The text was updated successfully, but these errors were encountered: