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

71 Commits

Author SHA1 Message Date
Jason Hall
57f20d0355
Merge pull request #98 from n3wscott/logo
Adding ko logo.
2019-10-15 09:45:39 -04:00
Scott Nichols
5697b9d2ae rel url. 2019-10-14 15:06:06 -07:00
Scott Nichols
474505bde6 Adding ko logo. 2019-10-14 10:20:20 -07:00
jonjohnsonjr
479bd3e5ce
Update ggcr (#97) 2019-10-04 15:27:28 -07:00
jonjohnsonjr
3880b61d2d
Allow plain registries as KO_DOCKER_REPO (#94)
This allows you to use e.g. localhost:5000 as KO_DOCKER_REPO.

Fixes #93.
2019-10-02 10:02:01 -07:00
jonjohnsonjr
241d532569
Update ggcr (#91)
Fixes #90

This picks up an auth rewrite.
2019-09-26 13:28:02 -07:00
Jason Hall
15f9719970
Merge pull request #89 from toshi0607/feature/fix-broken-markdown
fix broken markdown
2019-09-23 09:17:34 -04:00
toshi0607
f5bfec379b fix broken markdown 2019-09-23 22:09:21 +09:00
Jason Hall
56f32f8a17 Update README to include better install instructions (#87) 2019-09-20 10:08:56 -07:00
jonjohnsonjr
f26825fb5a
Remove extra dashes (#86) 2019-09-20 09:39:18 -07:00
jonjohnsonjr
451287a90e
Update ggcr (#83) 2019-09-20 09:29:57 -07:00
Jason Hall
133ae27c63 Use debug.ReadBuildInfo to populate ko version (#81)
* Use debug.ReadBuildInfo to populate `ko version`

* don't print version on build info failure

* Build using Go 1.12 and 1.13

* drop 'version: ' prefix

* println
2019-09-12 14:59:50 -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
jonjohnsonjr
3a17dee60a
Use GOOS/GOARCH from base image (#77) 2019-08-19 10:02:17 -07:00
jonjohnsonjr
96455023a3
Fix date command (#75) 2019-08-16 09:59:27 -07:00
jonjohnsonjr
ee58128ba3
Fix README formatting (#74)
Apparently those newlines are important.
2019-08-16 09:52:45 -07:00
zxxa
bd404f30ef add SOURCE_DATE_EPOCH usage (#72) 2019-08-16 09:50:39 -07:00
Jason Hall
b7eb9dfe48
Merge pull request #58 from ImJasonH/strict
Implement "strict mode" which requires `ko://` prefix for import paths
2019-08-15 21:48:35 -04:00
Jason Hall
91f571887c Make callers type out all of --strict 2019-08-15 21:44:56 -04:00
Matt Moore
a3656d1441
Add support for recursively resolving directory symlinks. (#73)
* Add support for recursively resolving directory symlinks.

This adds support for properly resolving directory symlinks within kodata.
I verified that with this I can symlink `.git/refs` into `kodata/` and (with
changes) resolve the `.git/HEAD` symlink to read the appropriate
`ref: refs/heads/...` files with the commit SHA.

* Incorporate code review feedback
2019-08-15 17:59:15 -07:00
Jason Hall
fee3c269a8 Review feedback 2019-08-15 16:55:26 -04:00
Jason Hall
9776d347fe Improve strict-mode error message 2019-08-15 15:02:02 -04:00
Jason Hall
3315663a21 Remove strictness checks from build, into resolve
Strictness has nothing to do with building, and is independent of how
images are built (fixed builder, some future exotic builder type, etc.)
2019-08-15 14:22:45 -04:00
Jason Hall
4342ceff74 Implement "strict mode"
When ko is invoked in this mode, import paths must have the `ko://`
prefix. If a human marks an import path with `ko://` and ko can't
resolve the resulting import path, it fails. In "loose mode", such an
import path would be silently ignored and passed on to the resolved
YAML, often resulting in invalid image names (e.g., `image:
github.com/foo/bar`)

In loose mode, `ko://` prefixes are always ignored for
backward-compatibility.
2019-08-15 09:45:59 -04:00
Matt Moore
2d12e28795
Add permissions to the kodata directory. (#68)
I suspect that this may be a source of problems reading kodata with nonroot,
but it is probably worth doing either way.
2019-08-12 07:12:47 -07:00
Jason Hall
c959e60df3
Merge pull request #67 from ImJasonH/mod
Use go modules
2019-08-09 18:07:15 -04:00
Jason Hall
8f817fdc45 use go modules 2019-08-08 12:01:11 -04:00
Jason Hall
9242988fb1
Merge pull request #66 from ImJasonH/cobra
Update cobra dep
2019-07-25 13:57:03 -04:00
Jason Hall
d3ab89fbf2 update Gopkg.toml 2019-07-25 13:47:42 -04:00
Jason Hall
caa953d3c3 Update cobra dep 2019-07-25 10:14:57 -04:00
tanner-bruce
48afd62710 Allow skipping TLS verification while publishing (#65)
Why this is necessary: when using a local docker registry, users may not
want to support https, or there may be other troubles not allowing
verifiable TLS support.

This commit adds this functionality by adding an `--insecure-registry`
flag.
2019-07-24 10:58:10 -07:00
jonjohnsonjr
3a0e70e520
Fix mult-doc yaml re-joining (#63) 2019-07-23 09:04:40 -07:00
Jason Cooke
0df8b2497e docs: fix typo (#61) 2019-07-16 18:30:19 -07: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
Sumanth Chinthagunta
d35600780e Update gobuild.go (#56)
Changing the order of environment variables so that user supplied value for `CGO_ENABLED` take priority 
https://github.com/google/ko/issues/52
2019-07-08 20:21:10 -07:00
Marek Schwarz
0af2e5e8a9 Added command completion (#49)
* Enable command completion (#27)

* Added documentation (#27)
2019-07-08 17:04:58 -07:00
Jason Hall
93ba9aa496
Merge pull request #53 from spencer-p/master
Use a more appropriate idiom in README
2019-07-08 18:37:40 -04:00
Spencer Peterson
f9504d09a6 Use a more appropriate idiom 2019-07-08 14:11:23 -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
jonjohnsonjr
b7d1820e13 Compress layers when we Build them (#47)
This avoids double-compressing later.
2019-06-25 16:30:25 -07:00
jonjohnsonjr
f46a2b6372 Add author and created_by data (#45)
Fixes #42
2019-06-24 12:58:37 -07:00
Jason Hall
d32f069b69
Merge pull request #43 from mattmoor/update-ggcr
Pull in the config change to ggcr.
2019-06-23 14:09:01 -04: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
Naomi Seyfer
9bae8ab408 Print images to stdout as we publish them. (#36) 2019-05-31 10:20:09 -07:00
Jason Hall
8a084cb5d2
Merge pull request #25 from cezkuj/ko-version
Resolving #21 issue. Adding ko version and simple release script
2019-05-17 10:40:26 -04:00
cezkuj
672e478602 Resolving #21 issue. Adding git-dir flag to always execute inside ko's directory in GOPATH 2019-05-17 05:54:03 +00:00
cezkuj
0aca6f6de8 Resolving #21 issue. Fixing conflicts after commands refactoring. Improving version command 2019-05-12 15:16:12 +00:00
jonjohnsonjr
cef9764e3d
Return better error messages (#33)
This hoists the publisher creation out of the loop for `ko publish` to
avoid needlessly resolving credentials multiple times.

This pulls the publisher creation outside of resolveFilesToWriter so we
can fail earlier if e.g. KO_DOCKER_REPO is unset, otherwise we start up
the kubectl goroutine and it would asynchronously fail with:

  error: no objects passed to apply
2019-04-30 13:08:54 -05:00
Scott Nichols
7c4a93a717 Adding create. (#30) 2019-04-26 16:28:22 -07:00