1
0
mirror of https://github.com/ko-build/ko.git synced 2024-12-15 09:04:09 +02:00
Commit Graph

31 Commits

Author SHA1 Message Date
Jason Hall
91f571887c Make callers type out all of --strict 2019-08-15 21:44:56 -04: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
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
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
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
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
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
Scott Nichols
6f9fb7f753 Move ko commands to pkg/commands (#29)
* Move commands to pkg/commands and split into files.
2019-04-26 15:56:15 -07:00
Scott Nichols
fba1d3d90a Moving options to pkg/commands/options. (#28) 2019-04-26 15:25:40 -07:00
Adam Harwayne
b0a1702132 Add --disable-optimizations flag to make debugging easier. (#24)
* Ignore GoLand files.

* Add --disable-optimizations flag to make debugging easier.

* Fix unit test (by ignoring the new functionality).
2019-04-18 10:18:29 -07:00
jonjohnsonjr
3584e2d4d3
Merge pull request #16 from dvrkps/patch-1
check NewGo error
2019-03-22 12:37:24 -07:00
Jason Hall
86a2d43f43 Drop name.WeakValidation 2019-03-22 15:02:13 -04:00
Davor Kapsa
2547a9c6b3
check NewGo error 2019-03-22 18:46:51 +01: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
d90911552c fix gobuild_test.go 2019-03-21 16:03:47 -04:00
Jason Hall
d580f39279 fix unit tests 2019-03-21 15:59:33 -04:00
Jason Hall
6354665a42 Initial commit 2019-03-14 14:23:47 -04:00