1
0
mirror of https://github.com/ko-build/ko.git synced 2025-11-06 09:19:12 +02:00
Commit Graph

44 Commits

Author SHA1 Message Date
Jason Hall
780c281292 Generate Markdown docs (#414)
* Generate Markdown docs

This is largely copied from similar work in go-containerregistry

This required moving the Root command definition out of main() into a
place where it could be referenced from the gendoc tooling.

* fix boilerplate

* moar fix boilerplate

* update cmd/ko/main.go

* set -j to GOMAXPROCS at runtime

* rebase on cli-runtime change

* remove trailing whitespace
2021-08-11 13:54:13 -07:00
Jason Hall
466dbab6c4 Remove dependency on cli-runtime (#413)
* first pass: kubectl flags must be passed after '--'

* add warning when using non-separated flags

* mark flags as deprecated

* drop defaultCacheDir and homedir dependency
2021-08-10 13:57:23 -04:00
dependabot[bot]
9f6e0d305b Bump github.com/docker/docker (#410)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.7+incompatible to 20.10.8+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Changelog](https://github.com/moby/moby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/docker/docker/compare/v20.10.7...v20.10.8)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-08 22:56:17 -04:00
Jason Hall
4ff8308086 Use annotation strings from image-spec/specs-go (#407) 2021-08-03 20:00:24 -04:00
Jason Hall
24e371ae56 bump go-containerregistry dep (#404) 2021-07-30 14:11:26 -04:00
Jason Hall
c9efd26241 Annotate OCI image indexes with base image information (#385) 2021-07-30 09:29:58 -07:00
Jason Hall
e947aa378d update deps (#392) 2021-07-27 15:40:24 -04:00
dependabot[bot]
4d17e6e284 Bump k8s.io/apimachinery from 0.20.6 to 0.21.3 (#391)
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.20.6 to 0.21.3.
- [Release notes](https://github.com/kubernetes/apimachinery/releases)
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.20.6...v0.21.3)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-26 09:48:01 -04:00
Jason Hall
26d03e92c2 Annotate images with base image information (#354)
* WIP: annotate base images

* remove TODO

* .

* Annotate with base index digest, if based on an index

* use correct new proposed annotation
2021-07-20 15:06:08 -05:00
Jason Hall
5395f992fc bump ggcr dep to v0.5.0 (#349) 2021-04-28 18:08:12 -04:00
Dave Protasowski
af19d48fa0 bump deps & drop replace directives 2021-02-16 17:27:34 -05:00
Jon Johnson
e521d7625f Bump ggcr to v0.4.0 2021-01-13 15:51:55 -08:00
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
Nghia Tran
715c03ebc2 Add crane's auth command to facilitate logging into a registry (#243)
* Add crane's auth command to facilitate logging into a registry

* Add documentation about `ko auth login`
2020-11-09 07:27:54 -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
bec089d9c8 Fix k8s.io/cli-runtime "require" (#189)
The "require" is behind the version in "replace", and since cli-runtime references the package mentioned in the errors we are seeing, rule this out as a source!
2020-09-04 10:53:50 -07:00
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