1
0
mirror of https://github.com/ko-build/ko.git synced 2025-02-19 20:00:10 +02:00

24 Commits

Author SHA1 Message Date
Matt Moore
1e05e91f92
Pin k8s.io/api for good measure (#188) 2020-09-04 10:05:05 -07:00
Matt Moore
60e32d0655
Switch to go 1.14 in go.mod, test 1.15 (#187)
* Switch to go 1.14 in go.mod, test 1.15

* Fix the integration test semantics with go 1.14+
2020-09-04 09:31:01 -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
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
3c6a907da9
Add additional output formats (tarball and layout) (#134)
* Create a MultiPublisher

MultiPublisher mimics io.MultiWriter in that it will publish an image to
multiple publish.Interface implementations.

* Add publish.{Tarball,Layout}Publisher

This adds support for publishing in the tarball format and to an OCI
image layout.

The tarball format isn't great, yet. It only supports writing once
instead of appending.

* Consolidate options

These were spread all over the place for no reasons. Now all the
publisher related options are grouped together.

* Add options for tarball/layout

Adds --oci-layout-path, --tarball, and --push flags.

--push=false will disable the default behavior of publishing to a
registry.

* go mod vendor

* Add Close method to publish.Interface

This allows us to defer writing to the tarball until we've collected all
the images that have been published.

* Fix tests
2020-02-19 09:30:01 -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.

ff1ac7f977...73724ba06b
2019-12-09 11:07:23 -08:00
Dave Protasowski
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
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
jonjohnsonjr
99a587ede5
Add build.Limiter (#79)
* Add build.Limiter

You can limit the number of concurrent builds with -j (a la make).

The default value for this is GOMAXPROCS, which seems reasonable.
2019-09-11 10:07:02 -07:00
Jason Hall
8f817fdc45 use go modules 2019-08-08 12:01:11 -04:00
Jason Hall
caa953d3c3 Update cobra dep 2019-07-25 10:14:57 -04:00
jonjohnsonjr
3566d3f01a
Add go module support (#60)
* Add go module support

* Make localimports work for go modules
2019-07-12 22:54:25 -07:00
Scott Weiss
0c205ab8e4 add selector flag and logic (#46)
* add selector flag and logic

* comments, cleanup

* add readme note for selector flag

* preserve comments, fix nits

* readme nit
2019-06-27 13:55:47 -07:00
Matt Moore
6500b08a99 Pull in the config change to ggcr. 2019-06-23 15:53:29 +00:00
jonjohnsonjr
116114f1f9
Bump ggcr depenency (#41)
* Update ggcr dependency

* Update kode

Fixed remote.Write interface change.

Drop name.WeakValidation (now default).
2019-06-21 13:15:10 -07:00
Jason Hall
86a2d43f43 Drop name.WeakValidation 2019-03-22 15:02:13 -04:00
Jason Hall
4f686b1e6c moar fix 2019-03-21 19:07:56 -04:00
Jason Hall
ab8152ad0a Update ko to ggcr head, update ggcr vendor 2019-03-21 18:51:39 -04:00
Jason Hall
6354665a42 Initial commit 2019-03-14 14:23:47 -04:00