Skip to content
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

[PLAT-6701] Enable zstd hephaestus #105

Merged
merged 2 commits into from
Jul 27, 2023
Merged

[PLAT-6701] Enable zstd hephaestus #105

merged 2 commits into from
Jul 27, 2023

Conversation

ddl-retornam
Copy link
Contributor

This pr creates the options to enable zstd and estargz compression.

pkg/config/config.go Outdated Show resolved Hide resolved
case CompressionGzip, CompressionStargz, CompressionZstd:
CompressionMethod = c.Buildkit.Compression
default:
CompressionMethod = CompressionGzip
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to ensure that gzip is forced as the default if not otherwise set? i.e.

	switch c.Buildkit.Compression {
	case CompressionGzip, CompressionStargz, CompressionZstd:
		CompressionMethod = c.Buildkit.Compression
	default:
		// force gzip as the default if not otherwise set
		c.Buildkit.Compression = CompressionGzip
		CompressionMethod = CompressionGzip
	}

Copy link
Contributor

@ddl-kfrench ddl-kfrench left a comment

Choose a reason for hiding this comment

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

lgtm - just had one small note

fixes issues with linter
pkg/buildkit/buildkit.go:127:19: string `true` has 6 occurrences, make it a constant (goconst)
@ddl-retornam ddl-retornam merged commit 7760c3d into main Jul 27, 2023
7 checks passed
@ddl-retornam ddl-retornam deleted the retornam/heph branch July 27, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants