Zbynek Roubalik
553dfa83f6
chore: e2e tests should run against Knative 0.22.0 ( #372 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-06-02 13:51:12 -04:00
jrangelramos
ae8ee9a02c
ci: implementation proposal for func e2e test ( #363 )
...
Signed-off-by: Jefferson Ramos <jrangeramos@gmail.com>
2021-06-02 09:43:04 +02:00
Zbynek Roubalik
9d7fd34649
feat: reference Secrets in `envs` and `volumes` sections in config ( #369 )
...
* feat: reference Secrets in `envs` and `volumes` sections in config
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-06-02 09:20:28 +02:00
Zbynek Roubalik
4f0641f586
chore: bump Knative deps to 0.22.0 ( #368 )
...
* chore: bump Knative deps to 0.22.0
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-06-01 16:29:41 +02:00
Lance Ball
593bfd0dc9
chore(builders): add explicit version numbers for builder images ( #365 )
...
This commit adds specific version numbers to each of the builder images
referenced in function templates, func.yaml file. Because the API for
at least some of the runtimes has changed over time (looking at you,
faas-js-runtime), we should consider publishing our func.yaml files with
known-to-be-working-with-this-release versioned builder images.
Signed-off-by: Lance Ball <lball@redhat.com>
2021-06-01 10:03:59 -04:00
github-actions[bot]
aee6180063
chore: release 0.15.1 ( #367 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-05-27 16:31:00 -04:00
Lance Ball
72584ced0d
fix: Revert "chore: bump Knative deps to 0.22.0 ( #358 )" ( #366 )
...
This reverts commit 27f62066ee
.
2021-05-27 16:18:33 -04:00
github-actions[bot]
3dda1fa9c0
chore: release 0.15.0 ( #346 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-05-27 12:58:34 -04:00
Lance Ball
d3eafe2a84
feat: add typescript templates ( #355 )
...
* feat: add typescript templates
Bumps the faas-js-runtime dependency to 0.7.1 and Node.js buildpack dependency to v0.8.1
fix file globbing on windows
adjust eslint/prettier for windows
improve READMEs
add usage guide
Signed-off-by: Lance Ball <lball@redhat.com>
2021-05-26 11:23:42 -04:00
Jim Crossley
caf0659900
src(templates)!: modify the nodejs event template to accept a cloudevent ( #356 )
...
* Simplify the nodejs events template
Pretty-printing the contents of the event and its envelope for each
request. This is handy when invoked as a Knative event sink as some
sources, e.g. Kafka, ignore the response body.
Co-authored-by: Lance Ball <lball@redhat.com>
* Expect the event parameter to be the entire CloudEvent
This will require a change to the faas-js-runtime, but at least the
template won't need to change when that's released
* Update nodejs guide to reflect 2nd arg's type is CloudEvent
* Templates now using faas-js-runtime 0.7.1
Co-authored-by: Lance Ball <lball@redhat.com>
2021-05-25 13:49:48 -04:00
Zbynek Roubalik
f62303b091
chore: bump golangci-lint version ( #360 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-05-25 15:05:28 +02:00
Zbynek Roubalik
eb47dc7ab2
chore: bump to Go 1.15 ( #359 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-05-25 15:05:17 +02:00
Zbynek Roubalik
27f62066ee
chore: bump Knative deps to 0.22.0 ( #358 )
...
* chore: bump Knative deps to 0.22.0
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
* update to Knative 0.22.0
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-05-25 15:05:05 +02:00
Helio Frota
ea0a75a7cc
fix: minor typos in node template docs ( #351 )
2021-05-18 08:48:34 -04:00
Lance Ball
2a0724083b
src: fail fast with conflicting flags ( #348 )
...
Signed-off-by: Lance Ball <lball@redhat.com>
2021-05-17 08:41:44 -04:00
Zbynek Roubalik
a9bfb98f68
src: check that func.yaml is correct ( #345 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-05-13 19:17:23 +02:00
Lance Ball
49594d9766
feat: add 'kn func emit' command ( #332 )
...
This commit adds an Emitter to be used by the CLI commands
for sending CloudEvents to functions, either locally, on
the cluster, or at a specified endpoint.
Signed-off-by: Lance Ball <lball@redhat.com>
2021-05-13 12:44:11 -04:00
Matej Vasek
a74e3dd5e8
src: update CLI help for env flag
...
Update CLI help for env flag. Now mentioning unsetting of variable.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-05-13 16:19:22 +02:00
Matej Vasek
a72a9a858a
src: add tests
...
Tests for mergeEnvMaps.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-05-13 15:01:33 +02:00
github-actions[bot]
1595b5bb48
chore: release 0.14.0 ( #342 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-05-12 14:55:12 -04:00
Lance Ball
2b025df199
src!: revert bump to go 1.16 and template changes ( #340 )
...
* Revert "src: rename boson import 'fn'"
This reverts commit c0a6f561c0
.
* Revert "src: all test dirs set to 0700"
This reverts commit 99f01220c2
.
* Revert "src: better error when custom template not found"
This reverts commit 6673395834
.
* Revert "src: better errors when custom runtime not found"
This reverts commit a31a6f67a1
.
* Revert "build: create separate target for templates.tgz"
This reverts commit 11164bf8d9
.
* Revert "src: use consistent separators for fs.FS instances"
This reverts commit 4db07b412f
.
* Revert "src: update go event template dependencies"
This reverts commit 3bfc13380f
.
* Revert "src: tarfs assumes forward slashes internally"
This reverts commit 6cc0e67b1c
.
* Revert "feat: support windows paths in embedded templates FS"
This reverts commit c2b216857b
.
* Revert "feat: positive error when runtimme or template unrecognized"
This reverts commit acc56b0900
.
* Revert "fix: lint issues"
This reverts commit 895872aee7
.
* Revert "ci: go 1.16 compatiblity updates"
This reverts commit 1e3959c045
.
* Revert "feat: preserve file modes using in-memory tar FS"
This reverts commit 7dc772ec62
.
* Revert "feat: create templates archive on go generate"
This reverts commit 63b7f11471
.
* Revert "ci: remove pkger from ci"
This reverts commit 876b0dd0f7
.
* Revert "src: remove pkger dependency and tidy"
This reverts commit f006ab1e32
.
* Revert "src: remove packaging artifact"
This reverts commit 4d9d0a7b4e
.
* Revert "src: remove pkger from make targets"
This reverts commit e44c1ad74c
.
* Revert "src: replace pkger with embed.FS"
This reverts commit 38874a4afd
.
* Revert "src: update references to deprecated ioutil"
This reverts commit 4025460f73
.
* Revert "src: require go 1.16"
This reverts commit 512d4c2580
.
* chore: update pkged.go
Signed-off-by: Lance Ball <lball@redhat.com>
2021-05-12 14:37:21 -04:00
github-actions[bot]
c5d31c5691
chore: release 0.13.0 ( #319 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-05-12 12:02:26 -04:00
Jefferson Ramos
94e387c932
fix: added checks on delete command test for lint
2021-05-11 13:05:57 -03:00
jrangelramos
203b0f28d1
Merge pull request #1 from matejvasek/tests-for-del-cmd
...
add tests for delete cmd
2021-05-10 16:51:59 -03:00
Matej Vasek
5a3d385432
add tests for delete cmd
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-05-10 21:22:11 +02:00
Jefferson Ramos
cf9ce0bbd6
[docs] Updated guides for delete command
2021-05-10 15:46:29 -03:00
Jefferson Ramos
8ab0ba243a
fix: func delete with explicity name as argument ( #323 ) with strict validation
2021-05-10 13:38:19 -03:00
Luke Kingland
87fd7babf1
chore: remove deprecated func image
2021-05-10 21:00:23 +09:00
Luke Kingland
c0a6f561c0
src: rename boson import 'fn'
2021-05-07 14:17:14 +09:00
Luke Kingland
99f01220c2
src: all test dirs set to 0700
2021-05-07 14:05:38 +09:00
Luke Kingland
6673395834
src: better error when custom template not found
2021-05-07 14:05:38 +09:00
Luke Kingland
a31a6f67a1
src: better errors when custom runtime not found
2021-05-07 14:05:38 +09:00
Luke Kingland
11164bf8d9
build: create separate target for templates.tgz
2021-05-07 14:05:38 +09:00
Luke Kingland
4db07b412f
src: use consistent separators for fs.FS instances
2021-05-07 14:05:37 +09:00
Luke Kingland
3bfc13380f
src: update go event template dependencies
2021-05-07 14:05:37 +09:00
Luke Kingland
6cc0e67b1c
src: tarfs assumes forward slashes internally
2021-05-07 14:05:36 +09:00
Luke Kingland
c2b216857b
feat: support windows paths in embedded templates FS
2021-05-07 14:05:16 +09:00
Luke Kingland
acc56b0900
feat: positive error when runtimme or template unrecognized
2021-05-07 14:05:16 +09:00
Luke Kingland
895872aee7
fix: lint issues
2021-05-07 14:05:16 +09:00
Luke Kingland
1e3959c045
ci: go 1.16 compatiblity updates
2021-05-07 14:05:16 +09:00
Luke Kingland
7dc772ec62
feat: preserve file modes using in-memory tar FS
2021-05-07 14:05:14 +09:00
Luke Kingland
63b7f11471
feat: create templates archive on go generate
2021-05-07 14:04:41 +09:00
Luke Kingland
876b0dd0f7
ci: remove pkger from ci
2021-05-07 14:04:41 +09:00
Luke Kingland
f006ab1e32
src: remove pkger dependency and tidy
2021-05-07 14:04:39 +09:00
Luke Kingland
4d9d0a7b4e
src: remove packaging artifact
2021-05-07 14:01:06 +09:00
Luke Kingland
e44c1ad74c
src: remove pkger from make targets
2021-05-07 14:00:46 +09:00
Luke Kingland
38874a4afd
src: replace pkger with embed.FS
2021-05-07 14:00:46 +09:00
Luke Kingland
4025460f73
src: update references to deprecated ioutil
2021-05-07 14:00:46 +09:00
Luke Kingland
512d4c2580
src: require go 1.16
2021-05-07 14:00:46 +09:00
Matej Vasek
2b5814c8c8
src: cleanup after test
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-05-06 15:04:12 +02:00