From 865612c3db6a0835636154c498e3695976599455 Mon Sep 17 00:00:00 2001 From: Ryan Cole Date: Mon, 7 Aug 2017 13:43:50 -0400 Subject: [PATCH] Disable compression by default Signed-off-by: Ryan Cole --- cmd/kpod/push.go | 11 ++--------- test/kpod.bats | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/cmd/kpod/push.go b/cmd/kpod/push.go index 43ab18e3..4621078e 100644 --- a/cmd/kpod/push.go +++ b/cmd/kpod/push.go @@ -15,11 +15,6 @@ import ( var ( pushFlags = []cli.Flag{ - cli.BoolFlag{ - Name: "disable-compression, D", - Usage: "don't compress layers", - Hidden: true, - }, cli.StringFlag{ Name: "signature-policy", Usage: "`pathname` of signature policy file (not usually used)", @@ -76,15 +71,13 @@ func pushCmd(c *cli.Context) error { destName := c.Args().Get(1) signaturePolicy := c.String("signature-policy") - compress := archive.Uncompressed - if !c.Bool("disable-compression") { - compress = archive.Gzip - } registryCredsString := c.String("creds") certPath := c.String("cert-dir") skipVerify := !c.BoolT("tls-verify") removeSignatures := c.Bool("remove-signatures") signBy := c.String("sign-by") + // Leave this here in case we want to add a compression option in the future + compress := archive.Uncompressed if registryCredsString != "" { creds, err := common.ParseRegistryCreds(registryCredsString) diff --git a/test/kpod.bats b/test/kpod.bats index b851cf24..6e5d4342 100644 --- a/test/kpod.bats +++ b/test/kpod.bats @@ -169,7 +169,7 @@ function teardown() { run mkdir /tmp/oci-busybox echo "$output" [ "$status" -eq 0 ] - run ${KPOD_BINARY} $KPOD_OPTIONS push --disable-compression "$IMAGE" oci:/tmp/oci-busybox + run ${KPOD_BINARY} $KPOD_OPTIONS push "$IMAGE" oci:/tmp/oci-busybox echo "$output" [ "$status" -eq 0 ] run rm -rf /tmp/oci-busybox