Commit Graph

696 Commits

Author SHA1 Message Date
Lance Ball 6d7ab83aed
Make `func invoke` print any response it receives. (#881)
* Make `func invoke` print any response it receives.

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: improve test

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: check Write() return value

Signed-off-by: Lance Ball <lball@redhat.com>
2022-03-06 14:25:35 -08:00
Luke Kingland 5a122c31e6
src: promote verbosity to constructor arg (#869)
* update root and version structure and help text

* fix: limit openshift int test with tag

* src: verbosity to constructor param

* fix misspelling

* fix merge error
2022-03-04 11:19:36 -08:00
Matej Vasek 1e4d52be33
Relax permission check only to owner exec perm (#878)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-03 05:54:06 -08:00
knative-automation d672afc19f
Update community files (#877)
Signed-off-by: Knative Automation <automation@knative.team>
2022-03-02 14:45:07 -08:00
Luke Kingland 043a00d12b
src: update root and version structure and help text (#865)
* update root and version structure and help text

* test root command help output

* fix trailing whitespace
2022-03-02 11:58:44 -08:00
Matej Vasek c4a7e095de
Use custom zip embedding not pkger (#835)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-02 06:41:43 -08:00
Luke Kingland 2bd5254f19
feat: command help text template preprocessing (#875) 2022-03-02 03:56:43 -08:00
Luke Kingland 3f30c91116
fix: use full root name for cmd help prefixes (#873) 2022-03-02 02:18:42 -08:00
knative-automation 02fa79e8e9
Update actions (#871)
Signed-off-by: Knative Automation <automation@knative.team>
2022-03-01 18:01:42 -08:00
Matej Vasek 8dd90bff19
Fix OpenShift credential loader (#876)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-01 17:59:42 -08:00
Senthilnathan M efb7996da7
printing helpful shorthand command (#816)
* printing helpful shorthand command

* Addressed review comments

* Resolved rebase conflicts

* Using cmd.Root().Name() for getting the executable name
2022-03-01 11:56:42 -08:00
salaboy b97fe9c4ec
Adding sample function in go template (#840)
* adding sample function in go template

* adding simple echo, using the correct signature

* fixing readme
2022-03-01 07:38:42 -08:00
Matej Vasek bea34d21a0
Mark OpenShift test as an integration test (#870)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-28 08:58:09 -08:00
Fabian Lopez 60dbeacc46
added git related flags for remote builds (#844)
* added git related flags for remote builds

* fix dependency issues

* remove context cancel

* add # split for git url

* account for the use of git args with local build type

* fix error message for build type
2022-02-28 03:56:07 -08:00
Matej Vasek 663fd29b76
Windows unit test fixes (#860)
* force run of `make test`

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix git file:// URIs

When using file:// forward slashes should be used.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix parsing of FS path from URI path

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* disable some test on Windows

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* disable some test on Windows

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix some tests for Windows

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* disable some test on Windows

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-27 17:53:07 -08:00
Jefferson Ramos 8702515d91
test: url for invoke test (#863) 2022-02-24 02:32:38 -08:00
Helio Frota efc3b208cb
fix: minor typos in docs (#862) 2022-02-23 07:25:39 -08:00
Matej Vasek 4fec4afca1
Custom improvements for OpenShift (#825)
* Custom improvements for OpenShift

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: osh cred loader

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: dns-err detec for fallback in cluster dial

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-22 10:17:04 -08:00
knative-automation fba018962e
Update actions (#843)
Signed-off-by: Knative Automation <automation@knative.team>
2022-02-22 09:48:03 -08:00
Lance Ball ad42f3a258
chore: update manifest.yamls (#846)
* chore: update manifest.yamls

In a couple of cases, the `invoke` parameter was missing. And there was an
outdated use of a typescript buildpack in the typescript/cloudevent templates.

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: I should set VSCode to autosave on focus change

Signed-off-by: Lance Ball <lball@redhat.com>
2022-02-22 09:10:04 -08:00
Matej Vasek 5fad42ba55
Update python builder version (#845)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-22 08:17:03 -08:00
Luke Kingland 64091fbc39
build pkged.go directly with make (#841)
Also removes the dependency on a modern bash when building on a stock OS
X box (which ships with a 15-year old version).
2022-02-21 11:06:03 -08:00
Matej Vasek f25724ad71
Fix podman guide (#836)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-17 05:58:12 -08:00
David Simansky a8e9629fd6
Fix checkum for github.com/tektoncd/cli (#837) 2022-02-17 01:44:12 -08:00
David Simansky 72d9b7d58e
Update Knative dependencies to v1.0 (0.27) (#833)
* Update Knative dependencies to v1.0 (0.27)

* Update vendored files
2022-02-16 12:15:40 -08:00
knative-automation 9a520ef392
Update actions (#762)
Signed-off-by: Knative Automation <automation@knative.team>
2022-02-16 07:21:40 -08:00
Lance Ball 93fa9804da
chore: accommodate knative's go linter (#831)
Signed-off-by: Lance Ball <lball@redhat.com>
2022-02-15 12:23:00 -08:00
Matej Vasek 4000fc59d1
Fix --verbose mode for the version sub-command (#829)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-13 22:02:20 -08:00
Matej Vasek 7ee4e0fafa
Update guide for podman (#828)
* Update guide for podman

In newer versions of func there is no need
for starting service and setting DOCKER_HOST envvar.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix per review request

Co-authored-by: Lance Ball <lball@redhat.com>

Co-authored-by: Lance Ball <lball@redhat.com>
2022-02-11 12:23:18 -08:00
Lance Ball b8370c139e
chore: bump node builder to latest (#826)
Signed-off-by: Lance Ball <lball@redhat.com>
2022-02-11 05:54:17 -08:00
knative-automation 5b1b69c0cb
Update community files (#813)
Signed-off-by: Knative Automation <automation@knative.team>
2022-02-10 02:35:06 -08:00
Luke Kingland 5b06498200
fix: defaults for prompt from flags then options (#821) 2022-02-09 12:24:42 -08:00
Matej Vasek 568af71712
src: cmd's common fn.Client (#824)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-09 08:19:41 -08:00
Lance Ball fdf4b60051
fix: don't fail info/invoke if eventing missing (#823)
If eventing is not installed, the user should still be able to get info and use
`kn invoke`. Don't fail, if `describe` finds eventing missing.

Fixes: https://github.com/knative-sandbox/kn-plugin-func/issues/822

Signed-off-by: Lance Ball <lball@redhat.com>
2022-02-09 03:04:43 -08:00
Matej Vasek a2abfca3d3
src: error-less ctors (#818)
* src: no error ctors

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: no error ctors

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-08 12:20:16 -08:00
Senthilnathan M 879031a245
Setting the default for language selector (#815) 2022-02-07 01:10:53 -08:00
Matej Vasek abd4eea0c7
Cleanup commands (#807)
* src: refactor commands

Commands are constructed from root,
not by using init() blocks.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup the prefix issue

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup style

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup nolint:misspell

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-03 10:26:21 -08:00
knative-automation e1095e0509
Update community files (#812)
Signed-off-by: Knative Automation <automation@knative.team>
2022-02-03 08:09:21 -08:00
Matej Vasek b4e6318ce5
chore: update boson builder image references (#810)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-02 05:06:33 -08:00
Sameer Vohra c6e67ef037
Update installing_cli.md (#806)
Add reference for kn plugins. Specifically plugins need a `kn-` prefix to be detected by know.
2022-02-02 00:25:33 -08:00
Zbynek Roubalik 1f54bdcb1c
src: fix `func.yaml` schema (#805)
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2022-02-01 18:05:32 -08:00
Matej Vasek fff00497f8
feat: completion --build flag of deploy sub-cmd (#802)
* feat: completion --build flag of deploy sub-cmd

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: refactor

Moved functionality.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-02-01 06:58:31 -08:00
knative-automation 6c6ea0dadc
Update community files (#803)
Signed-off-by: Knative Automation <automation@knative.team>
2022-02-01 01:45:31 -08:00
Lance Ball 2009073591
chore: change TAG to ETAG to avoid stepping on toes (#799)
Signed-off-by: Lance Ball <lball@redhat.com>
2022-01-28 06:23:47 -08:00
Lance Ball 210cd9a199
chore: update Makefile and hack/release.sh to accept TAG (#797)
The upstream release pipeline does not tag the source until the build and
tests have successfully completed. This should allow for our release builds
to pick up the knative infra TAG environment variable when building releases.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-01-28 05:45:47 -08:00
knative-automation 12a9f20dad
Update community files (#790)
Signed-off-by: Knative Automation <automation@knative.team>
2022-01-28 03:30:47 -08:00
Lance Ball ece9ac3645
fix: use paketo base image for springboot (#792)
The build actually seems to require `base` vs `tiny.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-01-27 09:26:47 -08:00
Lance Ball 6097b8d790
fix: use domain qualified registry for springboot (#789)
* fix: use domain qualified registry for springboot

The builder image name should include the registry name. Also it seems
that the tiny builder doesn't actually work. We need base.

Fixes: https://github.com/knative-sandbox/kn-plugin-func/issues/775

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: regenerate pkged.go with go 1.17

Signed-off-by: Lance Ball <lball@redhat.com>
2022-01-26 11:28:45 -08:00
Matej Vasek 6c282e77c2
fix: error type-check condition (#786)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-01-26 09:44:45 -08:00
knative-automation 7fe39cae18
Update community files (#785)
Signed-off-by: Knative Automation <automation@knative.team>
2022-01-26 05:27:45 -08:00