Skip to content

Conversation

@mkcp
Copy link
Contributor

@mkcp mkcp commented Oct 14, 2025

Description

This PR adds values to dev inspect, so users can see the results of the package values that they have loaded.

Related Issue

Fixes #4222
Relates to #3946

Checklist before merging

mkcp added 30 commits September 29, 2025 13:12
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
…flags to package create,deploy and inspect cmds with --set

Signed-off-by: Kit Patella <kit@defenseunicorns.com>
…options

Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
…tion

Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
…m chart value overrides

Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
…n using zarf to helm values mappings

Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
…than i expected

Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
@mkcp mkcp marked this pull request as ready for review October 15, 2025 18:58
@mkcp mkcp requested review from a team as code owners October 15, 2025 18:58
@mkcp mkcp changed the title WIP: feat(values): dev inspect feat(values): dev inspect Oct 15, 2025
Base automatically changed from mkcp/values to main October 16, 2025 20:17
@netlify
Copy link

netlify bot commented Oct 20, 2025

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit e659540
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/690bc3b2f5a12c00085a4294

mkcp added 4 commits October 20, 2025 13:35
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Comment on lines 182 to 183
ValuesFiles []string
SetValues map[string]string
Copy link
Member

Choose a reason for hiding this comment

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

In other SDK functions such as deploy and remove, we pass in values.Values. Is there a reason we pass in values files and set values here instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Def, this change didn't make sense - missed it while trying to automate some of these additions. The parse and merge code now lives in the CLI layer, while the API layer only takes a value.Values - same as the rest of the implementations.

Signed-off-by: Kit Patella <kit@defenseunicorns.com>
}

// Parse values from files
values, err := value.ParseFiles(ctx, o.valuesFiles, value.ParseFilesOptions{})
Copy link
Member

@AustinAbro321 AustinAbro321 Oct 23, 2025

Choose a reason for hiding this comment

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

Some duplication in this block, that can be pulled out into a common function. I know there's a few active PRs with blocks like this, so I think a follow up PR afterwards would be reasonable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does how up pretty often. This makes sense to me as two steps in the CLI layer because it's coming from two different sources (rather than wrapping both load valuesfiles and setvalues in the same helper func). The setValue step would definitely benefit from abstracting out the loop and path parsing though. I'll make a followup issue for it

Copy link
Member

@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

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

Interested in intent to support rendering the values that would be packaged internally and if that is/should be supported.

KubeVersion string
// Values are values passed in at inspect time. They can come from the CLI, user configuration, or set directly by
// API callers.
value.Values
Copy link
Member

Choose a reason for hiding this comment

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

With the CLI as the function caller - it parses values files from configuration and set values - but we have not yet parsed the values that were declared within the package

kind: ZarfPackageConfig
metadata:
  name: values-templating
  description: Example nginx package to demonstrate Zarf Values templating
values:
  files:
    - values.yaml

Should we be parsing these similar to deploy-time to include in templating?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this was a miss in the previous version of the PR. It's been changed significantly now and should be addressed

@brandtkeller brandtkeller moved this to In progress in Zarf Oct 24, 2025
@mkcp mkcp marked this pull request as draft October 28, 2025 21:15
mkcp added 3 commits October 29, 2025 15:36
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
@mkcp mkcp mentioned this pull request Oct 30, 2025
2 tasks
mkcp added 2 commits October 30, 2025 10:20
…path lookup

Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
@mkcp mkcp marked this pull request as ready for review November 3, 2025 20:11
mkcp added 3 commits November 5, 2025 11:52
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Add values and templating support for package remove actions and inspect

4 participants