We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 14dee39 + 7c51ad0 commit 5d04586Copy full SHA for 5d04586
pkg/machine/define/image_format.go
@@ -24,9 +24,6 @@ func (imf ImageFormat) Kind() string {
24
}
25
26
func (imf ImageFormat) KindWithCompression() string {
27
- // Tar uses xz; all others use zstd
28
- if imf == Tar {
29
- return "tar.xz"
30
- }
+ // All image formats are compressed with zstd
31
return fmt.Sprintf("%s.zst", imf.Kind())
32
pkg/machine/define/image_format_test.go
@@ -59,9 +59,9 @@ func TestImageFormat_KindWithCompression(t *testing.T) {
59
imf: Raw,
60
want: "raw.zst",
61
}, {
62
- name: "tar.xz",
+ name: "tar.zst",
63
imf: Tar,
64
- want: "tar.xz",
+ want: "tar.zst",
65
},
66
67
for _, tt := range tests {
0 commit comments