Commit Graph
199 Commits
Author SHA1 Message Date
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
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
cezkuj e8b7dedbe3 Resolving #21 issue. Adding ko version and simple release script 2019-04-19 15:11:06 +00: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
jonjohnsonjr eab537e91f Merge pull request #17 from ImJasonH/weak
Drop name.WeakValidation
2019-03-22 12:37:02 -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
jonjohnsonjr f0a367da93 Merge pull request #15 from google/ImJasonH-patch-1
Run tests with Go 1.11 and 1.12 (drop 1.10)
2019-03-21 19:52:57 -07:00
Jason Hall 021e392d3a Merge pull request #14 from ImJasonH/fix
Update ko to ggcr head, update ggcr vendor
v0.1
2019-03-21 19:15:48 -04:00
Jason Hall 4f686b1e6c moar fix 2019-03-21 19:07:56 -04:00
Jason Hall 5a4d14ece6 Run tests with Go 1.11 and 1.12 (drop 1.10) 2019-03-21 18:56:16 -04:00
Jason Hall ab8152ad0a Update ko to ggcr head, update ggcr vendor 2019-03-21 18:51:39 -04:00
Jason Hall c97dbc9d8c Merge pull request #2 from ImJasonH/fix
Fix unit tests
2019-03-21 16:18:27 -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 b1ce0513a1 remove cmd/ko/README.md 2019-03-21 15:33:23 -04:00
Jason Hall eefd8641b5 move ko to cmd/ko from cmd/ 2019-03-21 15:32:50 -04:00
Jason Hall 725771c731 update CONTRIBUTING.md 2019-03-15 14:18:41 -04:00
Jason Hall 6853e116b6 Add CONTRIBUTING 2019-03-15 14:17:44 -04:00
Jason Hall 6354665a42 Initial commit 2019-03-14 14:23:47 -04:00