You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
Currently when you run `zarf prepare find-images` with a package that
has variables in it, the variables don't get set, even to their
defaults. This can break the helm chart, or make us unable to find
images. This PR introduces a `--deploy-set` flag. Additionally we take
in the default values to the chart.
## Type of change
- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] 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
---------
Co-authored-by: Wayne Starr <[email protected]>
Co-authored-by: razzle <[email protected]>
--kube-version string Override the default helm template KubeVersion when performing a package chart template
21
-
-p, --repo-chart-path string If git repos hold helm charts, often found with gitops tools, specify the chart path, e.g. "/" or "/chart"
22
-
--set stringToString Specify package variables to set on the command line (KEY=value). Note, if using a config file, this will be set by [package.create.set]. (default [])
23
-
--why string Find the location of the image given as an argument and print it to the console.
19
+
--create-set stringToString Specify package variables to set on the command line (KEY=value). Note, if using a config file, this will be set by [package.create.set]. (default [])
20
+
--deploy-set stringToString Specify deployment variables to set on the command line (KEY=value) (default [])
21
+
-f, --flavor string The flavor of components to include in the resulting package (i.e. have a matching or empty "only.flavor" key)
22
+
-h, --help help for find-images
23
+
--kube-version string Override the default helm template KubeVersion when performing a package chart template
24
+
--registry-url string Override the ###ZARF_REGISTRY### value (default "127.0.0.1:31999")
25
+
-p, --repo-chart-path string If git repos hold helm charts, often found with gitops tools, specify the chart path, e.g. "/" or "/chart"
26
+
--why string Prints the source manifest for the specified image
Copy file name to clipboardexpand all lines: src/config/lang/english.go
+7-6
Original file line number
Diff line number
Diff line change
@@ -379,12 +379,13 @@ $ zarf package pull oci://ghcr.io/defenseunicorns/packages/dos-games:1.0.0 -a sk
379
379
"NOTE: This file must not already exist. If no filename is provided, the config will be written to the current working directory as zarf-config.toml."
380
380
CmdDevGenerateConfigErr="Unable to write the config file %s, make sure the file doesn't already exist"
381
381
382
-
CmdDevFlagExtractPath=`The path inside of an archive to use to calculate the sha256sum (i.e. for use with "files.extractPath")`
383
-
CmdDevFlagSet="Specify package variables to set on the command line (KEY=value). Note, if using a config file, this will be set by [package.create.set]."
384
-
CmdDevFlagRepoChartPath=`If git repos hold helm charts, often found with gitops tools, specify the chart path, e.g. "/" or "/chart"`
385
-
CmdDevFlagGitAccount="User or organization name for the git account that the repos are created under."
386
-
CmdDevFlagKubeVersion="Override the default helm template KubeVersion when performing a package chart template"
387
-
CmdDevFlagFindImagesWhy="Find the location of the image given as an argument and print it to the console."
382
+
CmdDevFlagExtractPath=`The path inside of an archive to use to calculate the sha256sum (i.e. for use with "files.extractPath")`
383
+
CmdDevFlagSet="Specify package variables to set on the command line (KEY=value). Note, if using a config file, this will be set by [package.create.set]."
384
+
CmdDevFlagRepoChartPath=`If git repos hold helm charts, often found with gitops tools, specify the chart path, e.g. "/" or "/chart"`
385
+
CmdDevFlagGitAccount="User or organization name for the git account that the repos are created under."
386
+
CmdDevFlagKubeVersion="Override the default helm template KubeVersion when performing a package chart template"
387
+
CmdDevFlagFindImagesRegistry="Override the ###ZARF_REGISTRY### value"
388
+
CmdDevFlagFindImagesWhy="Prints the source manifest for the specified image"
388
389
389
390
CmdDevLintShort="Lints the given package for valid schema and recommended practices"
390
391
CmdDevLintLong="Verifies the package schema, checks if any variables won't be evaluated, and checks for unpinned images/repos/files"
0 commit comments