Commit Graph

854 Commits

Author SHA1 Message Date
knative-automation df7b5733f1
Update community files (#1052)
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-10 02:34:25 +00:00
knative-automation dd212c2639
Update community files (#1051)
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-09 14:16:24 +00:00
Luke Kingland a6ce010b96
remove third-party echo test from CI (#1048) 2022-06-09 12:11:39 +00:00
Luke Kingland b40911b67c
fix: map invoke format flag (#1041) 2022-06-09 09:12:40 +00:00
Zbynek Roubalik 6030676ec6
chore: print correct logs for failed PipelineRun (#1046)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-06-09 09:11:38 +00:00
Matej Vasek 0aa8fe81bd
Better error message for podman auto service (#1030)
* Better error message for podman auto svc

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

* change per review request

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

Co-authored-by: Lance Ball <lball@redhat.com>
2022-06-09 07:03:38 +00:00
Matej Vasek 01aba8ad1c
Use JSON as default msg for the invoke sub-cmd (#1042)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-09 06:59:38 +00:00
Matej Vasek c592cd2a41
Increase service wait timeout (#1043)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-08 20:19:38 +00:00
Matej Vasek afe8a959ca
Plain JSON body in func invoke with HTTP (#1039)
Do not use form encoding.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-08 11:30:37 +00:00
knative-automation 9f7be6ec43
Update community files (#1040)
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-08 02:24:37 +00:00
Luke Kingland 5e26510f9d
feat: builder images map migration (#1033)
* feat: function builder images migration

* fix typos and comments
2022-06-07 11:15:36 +00:00
Luke Kingland fba0dc6af6
fix: increase timeout when testing int cluster availability (#1032) 2022-06-06 09:31:54 +00:00
Luke Kingland 17dc507c25
feat: pack builder images individually configurable (#1028) 2022-06-03 20:31:52 +00:00
knative-automation ab12aa7029
Update community files (#1035)
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-03 02:23:51 +00:00
Lance Ball ed454fa05c
chore(release): 0.24.0 (#1034) 2022-06-01 17:24:24 +00:00
knative-automation 909584ed0f
Update actions (#1026)
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-01 02:30:23 +00:00
knative-automation dff46ed7c2
Update community files (#1017)
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-01 02:21:24 +00:00
Luke Kingland 096085d751
feat: configurable s2i builder images (#1024)
adds support for the builderImages func.yaml attribute
2022-06-01 06:12:02 +09:00
Matej Vasek 041bb9fd66
Make JS/TS Function templates async by default (#1020)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-05-27 16:03:09 +02:00
Matej Vasek 8f405b691a
Improve help for the `build` sub-command (#1023)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-05-26 17:21:00 +02:00
Luke Kingland 1d367c6be5
fix: ignore node_modules for s2i builds (#1019)
- 🎁 Exclude certain directories form S2I build tar know to be either unnecessary or error-prone
- 🐛  Error running Node Functions which unnecessarily had node_modules sent to the build daemon

Exclude various files and cache directories from S2I builds.  This list may need to be expanded in the future.
2022-05-26 23:58:42 +09:00
Luke Kingland dc8abf179c
feat: expose default builder image logic for in-cluster builds (#1021)
Tekton pipeline runs now use the same logic for determining default builder image as a local buildpack build.

In order to implement varying build strategies (s2i vs buildpacks), we were unable to rely on hard-coded builder images. These defaults were moved in-code, with builders defined in func.yaml being an optional manual overrdide. This PR updates the Tekton deployment process to rely on this defaulting logic, rather than require the func.yaml override (which would preclude a Function from being able to be built using other strategies).
2022-05-26 23:56:59 +09:00
Matej Vasek ccfa02afdf
Use struct embedding instead of generated code (#1016)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-05-12 01:39:37 +00:00
Matej Vasek e830e09c5f
Fix S2I build with podman. (#1014)
Workaround a bug in podman:
https://github.com/containers/podman/issues/13770

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-05-12 01:12:34 +00:00
Luke Kingland 867d4c26d6
feat: improved invoke verbosity (#1007)
* feat: improved invoke verbosity

* e2e test updates

* regen filesystem

* e2e tests: add to query what is expected as an echo
2022-05-11 19:16:35 +00:00
knative-automation 1fd60ee8c0
Update community files (#1013)
Signed-off-by: Knative Automation <automation@knative.team>
2022-05-11 02:26:34 +00:00
Matej Vasek 8949484ffb
Update S2I envvars to work with fast-jar (#1012)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-05-10 18:21:33 +00:00
Matej Vasek 5ac6c25a4a
User fast-jar packaging for Quarkus (#1009)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-05-09 15:37:33 +00:00
Matej Vasek 8661253be6
Remove unnecesary files from Java template (#1008)
* Remove unnecesary files from Quarkus template

The jar will be automatically downloaded first time maven wrapper is used.

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

* Remove unnecesary files from Sprint Boot templates

The jar will be automatically downloaded first time maven wrapper is used.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-05-06 15:06:29 +00:00
Lance Ball 31c1d66eb3
chore: use paketo builders for all runtimes (#1001)
All runtimes were actually using paketo builders already, but the
builders were still being explicitly set in manifest.yaml instead of
existing as a default in builder.go like all of the others.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-05-06 01:23:28 +00:00
Matej Vasek ac8f1d2d66
Allow empty credentials registry (#1004)
* Allow empty credentials registry

Useful when using local unsecured registry.

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

* Added tests for empty credentials registries

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-05-05 18:42:28 +00:00
knative-automation 75fe105969
Update community files (#1006)
Signed-off-by: Knative Automation <automation@knative.team>
2022-05-05 02:27:27 +00:00
David Simansky d2914d5c25
Update Knative dependencies to v1.2 (0.29) (#1002) 2022-05-02 19:01:57 +00:00
Thomas Risberg a694cf54b3
Update spring boot cloud and native versions (#999) 2022-04-30 17:00:55 +00:00
Lance Ball 83c081d34a
chore(deps): bump faas-js-runtime version (#1000)
* chore(deps): bump faas-js-runtime version

There were a couple of bug fixes in the latest release. This commit
picks those up for functions projects in JavaScript and TypeScript.

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

* fixup: update package-lock.json for node/typescript tmpls

Signed-off-by: Lance Ball <lball@redhat.com>
2022-04-29 13:08:54 +00:00
Matej Vasek e9932cdf43
fix: read pwd from non-tty input (#996)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-04-28 12:09:53 +00:00
knative-automation b79683cc0c
Update community files (#994)
Signed-off-by: Knative Automation <automation@knative.team>
2022-04-27 02:25:52 +00:00
Luke Kingland 397ce65598
feat: s2i builder quarkus support (#993)
* feat: s2i builder quarkus support

* use manifest for quarkus s2i build envs
2022-04-27 00:40:56 +00:00
Luke Kingland 8185c0acce
src: update runner with shared env interpolation (#992) 2022-04-25 22:48:54 +00:00
Luke Kingland 14248311b1
feat: s2i builder env var interpolation (#991)
* feat: s2i builder env var interpolation

* nil env values disinclude from interpolate map
2022-04-25 19:18:54 +00:00
Zbynek Roubalik ce26a23352
fix: ignore `is forbidden` errors when deleting function and resources (#988)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-04-22 20:34:31 +00:00
Matej Vasek bbfb3e9f98
Use socat image from quay.io (#987)
Rationale: avoid docker.io pull limit.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-04-21 15:42:30 +00:00
Matej Vasek bed3dfc9f6
Paketo BuildPack for Quarkus (#985)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-04-20 19:26:29 +00:00
Lance Ball bc6383e55c
fix: update various doc links (#980)
* fix: update various doc links

There were a few links in the documentation that did not get updated in
the most recent docs restructuring. This addresses those issues that I
could find.

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

* fixup: whitespace

Signed-off-by: Lance Ball <lball@redhat.com>
2022-04-20 12:10:29 +00:00
Jefferson Ramos 9396f7bd07
test: update python e2e tests (new revision test) (#983) 2022-04-20 12:03:29 +00:00
Bryan Tong 23a040d063
Change Knaive (lol) to Knative (#981)
Signed-off-by: Bryan Tong <tongb@vmware.com>
2022-04-20 06:53:29 +00:00
Lance Ball 5af934be8d
feat: enable Paketo builders for Python functions (#979)
This commit changes the Python functions to use the open source Paketo
builders. The Paketo builders allow the use of a Procfile to indicate
the desired default start process for the container, so this has been
added to invoke Parliament at startup.

Also, there were no README.md files for Python, so I added them too.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-04-20 00:09:28 +00:00
knative-automation 67b43ee5d1
Update actions (#967)
Signed-off-by: Knative Automation <automation@knative.team>
2022-04-19 15:49:30 +00:00
Jefferson Ramos 01f113969a
CI enhancements (e2e tests) and Go template fix (#970)
* Adding timeout and additional logs on e2e http test

* Better revision check on e2e http update test

* ci: Adding workflow to run e2e for all runtimes

* fix: server error 500 for Go cloudevents template
2022-04-19 14:18:28 +00:00
Matej Vasek e502d554c8
Refactor: clean Repository and Runtimes structs (#973)
* Refactor: clean Repository and Runtimes structs

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

* Refactor: rename struct member

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-04-18 23:14:28 +00:00