Skip to content

Commit f57fd7e

Browse files
authored
chore: Create a duplicate spec
2 parents ec783bc + 1d1815b commit f57fd7e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cmd/wsm/download.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,14 @@ func DownloadCmd() *cobra.Command {
8080
if err != nil {
8181
panic(err)
8282
}
83+
// Create a copy of the spec to download additional images without writing changes to the filesystem
84+
dlSpec, err := deployer.GetChannelSpec("")
85+
if err != nil {
86+
panic(err)
87+
}
8388

8489
// Enable weave-trace in the chart values
85-
spec.Values["weave-trace"] = map[string]interface{}{
90+
dlSpec.Values["weave-trace"] = map[string]interface{}{
8691
"install": true,
8792
"image": map[string]interface{}{
8893
"tag": weaveTraceTag,
@@ -94,7 +99,7 @@ func DownloadCmd() *cobra.Command {
9499
spec.Chart.URL,
95100
spec.Chart.Name,
96101
spec.Chart.Version,
97-
spec.Values,
102+
dlSpec.Values,
98103
)
99104

100105
imgs := utils.RemoveDuplicates(append(wandbImgs, operatorImgs...))

0 commit comments

Comments
 (0)