Commit Graph
21 Commits
Author SHA1 Message Date
Matt Moore 64b28d0239 Revert to 0.18.8 of K8s (#279) 2020-12-22 09:26:51 -08:00
jonjohnsonjr eb93ca875f Update ggcr to v0.3.0 (#276)
* update ggcr

* go mod vendor

* go mod tidy
2020-12-22 07:22:28 -08:00
Matt Moore 222b0fc788 Allow ko to produce estargz layers. (#271)
* Allow ko to produce estargz layers.

This pulls in the latest google/go-containerregistry, which enables folks to set `GGCR_EXPERIMENT_ESTARGZ=1` to enable `ko` to start producing layers compatible with the estargz format, which enables the containerd estargz-snapshotter to lazy-load parts of images.

* Add README
2020-12-17 15:00:30 -08:00
Matt Moore 960e6a3f1c Update ggcr and use the new tarball.WithCompressCaching (#263)
This simplifies the logic for creating layers and relies on the new option instead of pre-gzipping (and gunzip being faster).  The net effect of this should be the elimination of an extra gunzip, but it should not materially impact the memory pressure because we were ALREADY caching the gzipped layers in-memory, we were just doing it on the caller side, which provided less benefit!
2020-12-13 18:14:27 -08:00
Matt Moore 8d9a4172cc upgrade to latest dependencies (#195)
Signed-off-by: Matt Moore (via Sockpuppet) <mattmoor@vmware.com>
2020-09-24 18:34:43 -07:00
jonjohnsonjr 8b52ec2374 Multi-platform ko (#38)
🦜
2020-09-24 15:58:08 -07:00
Matt Moore 1e05e91f92 Pin k8s.io/api for good measure (#188) 2020-09-04 10:05:05 -07:00
Markus Thömmes 64c2eef7ba Bump Kubernetes dependencies to 1.18. (#186) 2020-09-04 08:58:35 -07:00
Markus Thömmes 1aa3b3793e Allow images to be loaded into kind using 'kind.local'. (#180)
* Allow images to be loaded into kind using 'kind.local'.

* Add documentation for kind.
2020-09-04 08:32:26 -07:00
Jon Donovan 6e4a93eee0 Add integration tests for various go mod corner cases. (#179)
* Add manual integration tests for various go mod corner cases.

* Move integration test back and actually test the outputs.

I realize now this is run in a travis CI job :) So I'll make it actually work.

* Add _, gofmt

* Add tools build constraint.

* Stop redirecting stderr

* Use local mode to support CI.
2020-08-05 12:16:28 -07:00
jonjohnsonjr 3e73a508fa go mod tidy (#141) 2020-03-10 09:42:26 -07:00
jonjohnsonjr ed28755e6b Update go-containerregistry (#140)
Pick up https://github.com/google/go-containerregistry/pull/690
2020-03-10 09:36:12 -07:00
jonjohnsonjr f9e50dc059 Update ggcr (#136) 2020-02-19 11:26:04 -08:00
jonjohnsonjr 99ecfeb5c4 Add goreleaser GitHub action (#121) 2020-01-24 08:44:56 -08:00
jonjohnsonjr b7e1a7fdbc Update ggcr dependency (#119)
* Update ggcr dependency

I had to move genericclioptions to k8s.io/cli-runtime

* bump client-go

* usePersistentConfig=false
2020-01-15 13:16:11 -08:00
jonjohnsonjr 28f239ab78 Update ggcr (#113)
Mostly to pick up media type mutation, but this includes a bunch of
other fixes.

https://github.com/google/go-containerregistry/compare/ff1ac7f97758299e13f746209d8c0f199923d89a...73724ba06bda116382dafb17b39b682ffab4dc36
2019-12-09 11:07:23 -08:00
Dave Protasowskiandjonjohnsonjr 4833bb4a3e Preserve YAML comments & style when resolving/applying (#103)
* Preserve YAML comments & style when resolving/applying

This is accomplished by adopting the yaml.v3 lib. It
exposes a Node struct that's used internally by the
yaml encoder/decoder

ko internally now manipulates YAML documents using this struct

Fixes #101

* add/remove vendored modules

* Apply suggestions from code review

Fix comments

Co-Authored-By: jonjohnsonjr <jonjohnson@google.com>

* update doc link

* Fix use of yaml.Decoder in a test

When the yaml.Decoder returns an io.EOF it implies
there were no YAML documents decoded and that there
are no more!

* Update pkg/resolve/resolve.go

resolve comment suggestion

Co-Authored-By: jonjohnsonjr <jonjohnson@google.com>

* leave ko prefix if we're not operating in strict mode

* move testutils to internal/testing
2019-11-05 12:24:08 -08:00
jonjohnsonjr 479bd3e5ce Update ggcr (#97) 2019-10-04 15:27:28 -07:00
jonjohnsonjr 241d532569 Update ggcr (#91)
Fixes #90

This picks up an auth rewrite.
2019-09-26 13:28:02 -07:00
jonjohnsonjr 451287a90e Update ggcr (#83) 2019-09-20 09:29:57 -07:00
Jason Hall 8f817fdc45 use go modules 2019-08-08 12:01:11 -04:00