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

(feat): Remove progress bar #3067

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/internal/packager/images/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ func createPushOpts(cfg PushConfig, pb *message.ProgressBar) []crane.Option {
// TODO (@WSTARR) This is set to match the TLSHandshakeTimeout to potentially mitigate effects of https://github.com/zarf-dev/zarf/issues/1444
transport.ResponseHeaderTimeout = 10 * time.Second

transportWithProgressBar := helpers.NewTransport(transport, pb)
transportWithoutProgressBar := helpers.NewTransport(transport, nil)
AustinAbro321 marked this conversation as resolved.
Show resolved Hide resolved

opts = append(opts, crane.WithTransport(transportWithProgressBar))
opts = append(opts, crane.WithTransport(transportWithoutProgressBar))

return opts
}
4 changes: 2 additions & 2 deletions src/internal/packager2/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ func pushImagesToRegistry(ctx context.Context, c *cluster.Cluster, pkgLayout *la
transport.TLSClientConfig.InsecureSkipVerify = config.CommonOptions.InsecureSkipTLSVerify
// TODO (@WSTARR) This is set to match the TLSHandshakeTimeout to potentially mitigate effects of https://github.com/zarf-dev/zarf/issues/1444
transport.ResponseHeaderTimeout = 10 * time.Second
transportWithProgressBar := helpers.NewTransport(transport, nil)
transportWithoutProgressBar := helpers.NewTransport(transport, nil)

pushOptions := []crane.Option{
crane.WithPlatform(&v1.Platform{OS: "linux", Architecture: pkgLayout.Pkg.Build.Architecture}),
crane.WithTransport(transportWithProgressBar),
crane.WithTransport(transportWithoutProgressBar),
crane.WithAuth(authn.FromConfig(authn.AuthConfig{
Username: regInfo.PushUsername,
Password: regInfo.PushPassword,
Expand Down
Loading