Matej Vasek
923c788f4a
src: better ctx propagation ( #283 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-03-24 11:05:52 -04:00
Lance Ball
76717ee7d9
docs: major overhaul of docs ( #284 )
...
This commit makes a fairly substantial change to the docs directory.
My intent was to simplify it as much as possible, in order to make
finding relevant content easier. In almost all cases where there was
a stub document with little to no content, that document has been
removed. I have grouped the developer, cli, language and integration
docs under docs/guides and moved the provisioning documents to their
own directory.
I have also added the Node.js language/template/api reference that was
originally written for boson-project/functions. This repo may be a better
place for this and maybe all documentation.
Signed-off-by: Lance Ball <lball@redhat.com>
2021-03-24 14:07:09 +01:00
Matej Vasek
dc2fbee67f
fix: `func deploy` uses Docker API, not binary
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-03-22 15:18:03 +01:00
Luke Kingland
8a91cac6cc
feat: add --build (default: true) flag to func deploy
2021-03-16 15:29:36 +09:00
Luke Kingland
f115a7a871
client: remove implicit call to Build on Deploy
2021-03-16 15:24:39 +09:00
Matej Vasek
db0945ed3e
fix: `func run` now uses Docker API, not binary
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-03-15 18:24:57 +01:00
David Simansky
8daa725779
chore: Update Knative dependencies to 0.20 ( #273 )
2021-03-10 15:10:03 +01:00
Luke Kingland
d915554d71
src: add makefile target
2021-03-10 19:35:27 +09:00
Luke Kingland
1551d69b5d
fix: compare service names in integraiton tests
2021-03-10 19:35:27 +09:00
Luke Kingland
8edd0df836
feat: basic lifecycle integraiton tests
2021-03-10 19:35:27 +09:00
Luke Kingland
4f2f577a82
ci: run integration tests with on-demand cluster
2021-03-10 19:35:27 +09:00
Luke Kingland
ddf4ab86c4
feat: integration tests target
2021-03-10 19:35:27 +09:00
Luke Kingland
f1a6561543
src: also package templates on 'go generate'
2021-03-10 19:35:27 +09:00
Luke Kingland
9c499b69c4
feat: local cluster allocation, configuration and teardown
2021-03-10 19:35:26 +09:00
Luke Kingland
80e366b142
fix: increase remove timeout to 120s
2021-03-10 19:35:26 +09:00
Zbynek Roubalik
8143ea1056
server-side generated Revision name during the update ( #274 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-03-08 09:31:39 +01:00
Matej Vasek
38fd673fdb
fix: sprint-boot template
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-03-02 04:33:27 +01:00
Matej Vasek
6d2d8c63b0
feat: using custom docker daemon (e.g podman)
...
The `func` binary is now aware of DOCKER_HOST environment variable.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-03-02 04:04:01 +01:00
Matej Vasek
2f63fae705
Fix digest regex
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-02-12 19:51:19 +01:00
Matej Vasek
b4ba7f694b
Improve digest parsing
...
Improve digest parsing from docker output using regex.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-02-10 18:17:41 +01:00
Zbynek Roubalik
401e1163e5
chore: introduce Codeowner file ( #259 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-02-03 15:11:43 +01:00
Zbynek Roubalik
a9daa6a1ff
src: remove logrus dependency ( #258 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-02-02 15:20:31 +01:00
Matej Vasek
c3c21657b2
fix: update pack dependency
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-02-01 17:03:33 +01:00
github-actions[bot]
e700252963
chore: release 0.11.0 ( #244 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-01-21 17:58:42 +01:00
David Simansky
6584b0ab9b
chore: Update Knative Client dependencies to 0.19 release ( #254 )
2021-01-21 17:40:52 +01:00
Zbynek Roubalik
a5cbe3061b
src: rename from faas to func ( #253 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-01-21 17:10:39 +01:00
Zbynek Roubalik
8d1f5b833d
fix: correcting broken merge ( #252 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2020-12-14 09:54:07 -05:00
Zbynek Roubalik
f0be048c84
fix: set envVars when creating a function ( #250 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2020-12-14 13:33:47 +01:00
Lance Ball
ed9a405604
chore: use 'npm ci' instead of 'npm install' for Node.js tests ( #251 )
...
This will ensure that package-lock.json is not updated with patch releases
unintentionally - that should be done with intent.
Signed-off-by: Lance Ball <lball@redhat.com>
2020-12-11 10:01:05 -05:00
Lance Ball
61ea8d4fc6
fix: print "No functions found in [ns] namespace" for kn func list ( #240 )
...
When there are no functions deployed, the `kn func list` command now says so.
Fixes: https://github.com/boson-project/faas/issues/228
Signed-off-by: Lance Ball <lball@redhat.com>
2020-12-11 09:34:53 -05:00
Lance Ball
6470d9e574
fix: change --format flag to --output for list and describe commands ( #248 )
...
Fixes: https://github.com/boson-project/func/issues/223
Signed-off-by: Lance Ball <lball@redhat.com>
2020-12-11 15:32:30 +01:00
Lance Ball
54306375e1
chore: pull and run pkger on main branch CI ( #247 )
...
* chore: pull and run pkger on main branch CI
I started this by trying to run a build matrix, but it got complicated pretty
quickly, since this build actually does `make cross-platform`. If we want to
also run a platform matrix when things land on `main`, I think it would be best
if we modified `pull_requests.yaml` to also run on `main` as well as on pull
requests (and be renamed).
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: remove personal branch from build trigger
2020-12-11 08:46:34 -05:00
Zbynek Roubalik
55024921c2
fix: correct fn signatures in Go Events template ( #246 )
...
* fix: correct fn signatures in Go Events template
* change cloudevents import name to event
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2020-12-10 16:11:12 -05:00
Lance Ball
99bee20639
chore: ensure that pkger is run when templates change ( #239 )
...
This commit adds `pkger` to the Makefile, ensuring that when any changes are
made in the `templates` directory it runs. For CI, I've added a download of the
`pkger` binary.
Fixes: https://github.com/boson-project/faas/issues/230
Signed-off-by: Lance Ball <lball@redhat.com>
2020-12-10 10:27:59 -05:00
Lance Ball
8e72fd2eba
feat: add --all-namespaces flag to `func list` ( #242 )
...
* feat: add --all-namespaces flag to `func list`
Fixes: https://github.com/boson-project/faas/issues/224
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: linting
Signed-off-by: Lance Ball <lball@redhat.com>
2020-12-10 12:12:11 +01:00
Lance Ball
5a3a0d6bda
fix: fix the help text for the describe function ( #243 )
...
That must have been a copy/paste error.
Signed-off-by: Lance Ball <lball@redhat.com>
2020-12-10 12:10:52 +01:00
github-actions[bot]
9ed64787fd
chore: release 0.10.0 ( #232 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-12-08 12:10:11 -05:00
Zbynek Roubalik
985906b0e1
fix: use image name for run command ( #238 )
...
The run command shouldn't consume the digest (as it is being created once the image is being pushed to the external registry), because if we do deploy , then build and then run, the run will use image produced by deploy not the subsequent build.
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2020-12-08 10:19:45 -05:00
David Simansky
7e47377ce4
chore: Update Knative dependencies to 0.18 ( #235 )
2020-12-07 11:46:31 +01:00
David Simansky
8a30ba193d
fix: Fix plugin version output ( #233 )
...
* fix: Fix plugin version output
* fix: Rm unsued import
2020-12-02 20:27:51 +01:00
Kamesh Sampath
557361a374
feat: add spring cloud function runtime and templates ( #231 )
...
* feat: add spring cloud function runtime and templates
* docs: review updates
* squash: apply suggestions from code review
Co-authored-by: Lance Ball <lball@redhat.com>
2020-11-25 12:15:48 -05:00
github-actions[bot]
e8b622e1aa
chore: release 0.9.0 ( #200 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-11-06 15:28:03 -05:00
Roland Huß
5dd72d7348
chore: Update help messages and adding examples. ( #218 )
...
* chore: Update help messages and adding examples.
This commit introduces fixes for the top-level help message as described in #187 .
It does not address:
* #216 - Use `kn function` in help message when run as a plugin to kn
* #215 - Group main help message to put important commands to the top
* #214 - Make examples in usage message parameterizable
2020-11-06 14:11:57 -05:00
Matej Vasek
b595500bb0
src: updated Quarkus template
...
Function in template now accepts beans instead of java.lang.Object
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2020-11-06 18:19:05 +01:00
Matej Vasek
d5624980d5
fix: `delete` and `deploy sub-commands respects func.yaml conf
2020-11-06 17:19:10 +01:00
Lance Ball
beb838ff43
fix: return JSON in Node.js event template ( #211 )
...
The event template was just returning a string, but the default response
content type is application/json so browsers were failing to parse the string
as JSON.
Signed-off-by: Lance Ball <lball@redhat.com>
2020-11-06 10:46:53 -05:00
Zbynek Roubalik
470ebb9da4
rename function -> func ( #217 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2020-11-06 12:47:30 +01:00
Zbynek Roubalik
cd57692c9d
feat!: rename faas to function ( #210 )
...
* rename faas to function
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
* function.yaml -> func.yaml
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2020-11-06 10:41:42 +01:00
Luke K
57e12362af
feat!: remove create cli subcommand ( #180 )
2020-11-06 17:08:49 +09:00
Zbynek Roubalik
ddbb95b075
feat: Better output of build/deploy/delete commands ( #206 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2020-11-05 16:46:21 +01:00