Commit Graph

884 Commits

Author SHA1 Message Date
github-actions[bot] b3ced5ebd5
chore: update Quarkus platform version to 2.11.3.Final (#1187)
Co-authored-by: Knative Automation <automation@knative.team>
2022-08-24 14:21:32 +02:00
Luke Kingland fecbc4ef8b
chore: use dot as path default rather than absolute path (#1184)
* use '.' in flags to indicate default function path

* regen commands.txt with '.' as default path

* centralize dot expansion

* minor cleanup

* update all references to path flag

* exits should be panics
2022-08-24 11:02:18 +00:00
Gunjan Vyas e465348210
chore: update springboot dependencies (#1183) 2022-08-23 12:05:17 +00:00
knative-automation 031710ae5e
Update community files (#1179)
Signed-off-by: Knative Automation <automation@knative.team>

Signed-off-by: Knative Automation <automation@knative.team>
2022-08-23 02:43:16 +00:00
Lance Ball a52b7d5ecd
chore: adjust codecov configuration (#1177)
* chore: adjust codecov configuration

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

* fixup

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

Signed-off-by: Lance Ball <lball@redhat.com>
2022-08-20 02:29:52 +00:00
Lance Ball 3ac5d468bf
chore: add some milliseconds in client tests (#1178)
The client test which checks for rebuilds based on timestamps is
consistently failing in CI. This change may alleviate that problem.

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

Signed-off-by: Lance Ball <lball@redhat.com>
2022-08-19 14:49:52 +00:00
Zbynek Roubalik bfdbdbebe8
On cluster build: support Build Envs (#1174)
* On cluster build: support Build Envs

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* add test

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-08-19 13:32:52 +00:00
Matej Vasek 62b7232636
chore: Use NodeJS for script instead of Shell (#1170)
Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-08-18 12:19:49 +00:00
Jefferson Ramos 3af2ea3490
test: quarkus test template change to remove package type property (#1171) 2022-08-17 18:08:48 +00:00
knative-automation c01341e490
Update community files (#1165)
Signed-off-by: Knative Automation <automation@knative.team>

Signed-off-by: Knative Automation <automation@knative.team>
2022-08-16 02:02:48 +00:00
Lance Ball 80657c90e3
fix: ensure registry in func.yaml is respected (#1168)
* fix: ensure registry in func.yaml is respected

If the user has a value specified in func.yaml for the image registry,
that value should be used by the build command, if not otherwise
specified as a flag or via the environment.

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

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

* fixup: lint

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

Signed-off-by: Lance Ball <lball@redhat.com>
2022-08-16 00:05:49 +00:00
knative-automation 133e4dc3a9
Update community files (#1163)
Signed-off-by: Knative Automation <automation@knative.team>

Signed-off-by: Knative Automation <automation@knative.team>
2022-08-12 02:37:00 +00:00
Ying Chun Guo 0441770267
fix link to reference/command.txt (#1161) 2022-08-11 15:23:59 +00:00
Ying Chun Guo 12073a4c8f
remove duplicate cmd.AddCommand(NewLanguagesCmd) at root.go (#1162) 2022-08-11 14:52:03 +00:00
Dirk Haubenreisser 48c348806f
Added binary builds for platforms ppc64le and s390x (#1160) 2022-08-11 14:28:58 +00:00
Luke Kingland 2f8d82bec2
feat: templates list command (#1134)
* feat: templates list command

* linter placation
2022-08-10 19:37:58 +00:00
github-actions[bot] 849c2cd7a1
chore: update Quarkus platform to 2.11.2.Final (#1157)
Co-authored-by: Knative Automation <automation@knative.team>
2022-08-08 14:17:24 +00:00
knative-automation 24ade41929
Update community files (#1156)
Signed-off-by: Knative Automation <automation@knative.team>
2022-08-05 14:25:23 +00:00
knative-automation df99a5350a
Update community files (#1155)
Signed-off-by: Knative Automation <automation@knative.team>
2022-08-05 02:38:23 +00:00
Matej Vasek b42eff36c5
fixup: change period 15min -> 4hrs (#1150)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-08-04 14:43:21 +00:00
Jefferson Ramos f72b23fe76
doc: fix doc reference on nodejs template (#1154) 2022-08-04 14:35:21 +00:00
knative-automation fd49a2d241
Update actions (#1153)
Signed-off-by: Knative Automation <automation@knative.team>
2022-08-03 13:49:18 +00:00
Lance Ball 3b8c24092b
fix: use space prefix for deploy output text (#1144)
* chore: use space prefix for deploy output text

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

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

* fixup: adjust e2e deploy test expectations

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

* fixup: another e2e test tweak

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

* fixup: another e2e test tweak

Signed-off-by: Lance Ball <lball@redhat.com>
2022-08-02 13:11:16 +00:00
Matej Vasek fd8f1803fc
fixup: master->main (#1148)
* fixup: master->main

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

* fixup: cURL fail on HTTP error code

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-29 20:26:38 +00:00
Matej Vasek f4f04c756f
Quarkus platform auto-updater (#1147)
* Quarkus platform auto-updater

Added periodict task that check Quarkus platform version and creates PR with update if needed.

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

* Apply suggestions from code review

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

Co-authored-by: Lance Ball <lball@redhat.com>
2022-07-29 19:35:39 +00:00
knative-automation 34c916d43a
Update community files (#1142)
Signed-off-by: Knative Automation <automation@knative.team>
2022-07-28 02:29:36 +00:00
Zbynek Roubalik 65c30abb39
feat: deploy Tekton task supports optional `image` parameter (#1140)
* feat: deploy Tekton task supports optional `image` parameter

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* address feedback

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-07-27 14:52:36 +00:00
David Fridrich e659256005
chore: use lower case *functions* in all CLI outputs (#1135)
* first run, F -> f

* fix

* fix

* misspells

* client*.go files

* add client*.go: misspells

* cmd dir test files

* docker dir

* function* files

* i*.go and job.go

* job.go,mock dir,repos*,s2i dir,schema dir,templates*

* test dir

* testing dir

* root dir *.go second round
2022-07-27 13:34:36 +00:00
Lance Ball df022f5c93
docs: replace commands.md with generated text file (#1089)
* docs: replace commands.md with generated text file

This commit removes commands.md document which tends to get out of date
pretty easily and replaces it with a generated commands.txt file. The
help text generation is fairly naive, but should be sufficient for the
time being.

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

* fixup: tweak title formatting

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

* fixup: run build-docs.sh again after recent change

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

* fixup: add docs generation to make build target

Also removes the random UUID as the default for `invoke` since it's a
little misleading. That value will not be the one that's used, since
it's random. And because it's random, it changes the docs every time.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-07-25 16:10:24 +00:00
Zbynek Roubalik 71b0dddc55
chore: add validation for `builder` (#1136)
* chore: add validation for `builder`

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* address feedback

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-07-25 16:09:24 +00:00
Lance Ball cf5be9a616
fix: stop build progress loop when build completes (#1133)
This change prevents the incremental build messages that loop while
building from continuing during subsequent deploy phases by providing a
cancelable context to the `printBuildActivity()` function parameters.

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

Signed-off-by: Lance Ball <lball@redhat.com>
2022-07-21 21:52:20 +00:00
Jefferson Ramos ff20f53671
test: remove verbose from test invoke create/deploy commands (#1137) 2022-07-21 16:18:24 +00:00
Matej Vasek a906b8866c
chore: update Quarkus templates to 2.10.3.Final (#1132)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-20 17:24:01 +00:00
David Fridrich 8cb70808f5
feat: always store namespace in func.yaml and warn if current ns & func.yaml ns is different (#1118)
* check namespace; add to func.yaml on first deploy; added tests and mock kubeconfig for testing

* change func args because only f.Namespace is used instead of the whole struct

* func comment

* misspell

* fix tests

* warning in stderr

* use context.Background

* add fake kubeconfig for new test
2022-07-20 16:35:01 +00:00
Lance Ball 59df756e49
fix: add languages command to cmd root (#1127)
Also add a little more information to the short description.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-07-20 15:59:01 +00:00
Matej Vasek 36216e7fed
fix: image push authorization check (#1130)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-19 21:11:00 +00:00
Gunjan Vyas b1fd9f71b1
feat: persist builder value in func.yaml (#1099)
* Persist builder value in func.yaml

* Added tests

* removed print statement for platform error

* created common function for builder persistence test
2022-07-19 11:42:00 +00:00
Matej Vasek 819b433edb
feat: build for Linux ARM64 (#1123)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-18 19:56:59 +00:00
Zbynek Roubalik a7671e45a7
feat: add runtime icons on OpenShift (#1116)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-07-18 16:18:59 +00:00
dependabot[bot] 7a760fbf57
chore(deps): bump github.com/containerd/containerd from 1.6.0 to 1.6.6 (#1112)
* chore(deps): bump github.com/containerd/containerd from 1.6.0 to 1.6.6

Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.6.0 to 1.6.6.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.6.0...v1.6.6)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fixup: run ./hack/update-codegen.sh

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

* run ./hack/update-deps.sh

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lance Ball <lball@redhat.com>
Co-authored-by: Matej Vasek <mvasek@redhat.com>
2022-07-18 16:09:59 +00:00
Lance Ball cccb2833d1
chore(deps): update node/typescript deps in e2e tests (#1119)
Signed-off-by: Lance Ball <lball@redhat.com>
2022-07-18 12:37:59 +00:00
Luke Kingland d1f935fde9
feat: languages list command (#1114)
* feat: languages list command

* corrections
2022-07-18 11:20:59 +00:00
Gunjan Vyas 0d0953aa1c
print registry and user name during image push (#1121) 2022-07-18 11:11:59 +00:00
Matej Vasek 8eaa17b4bf
Run embedded FS test separately (#1117)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-14 19:05:16 +00:00
Lance Ball 29f3aadb47
chore: update node and typescript dependencies (#1110)
This commit updates both the Node.js and TypeScript cloudevents
templates to use the most recent version of the CloudEvents module, and
bumps transitive dependencies that needed updates via `npm audit fix`.

Signed-off-by: Lance Ball <lball@redhat.com>
2022-07-14 08:02:14 +00:00
Zbynek Roubalik b4b4cc34c3
feat: add OpenShift related Annotations & Labels (#1106)
* feat: add OpenShift related Annotations & Labels

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* fix test

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-07-13 18:19:14 +00:00
Zbynek Roubalik f4537dd3d5
fix: use 0 group id for func-buildpacks Task (#1105)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-07-12 20:38:12 +00:00
David Fridrich c57af36f74
feat: func deploy accepts image digest in --image (#1098)
* --image can be given with digest, created parser and edited some help text to reflect this

* fixed small stuff

* tests for deploy with --image

* move parser to file, static test should be kept active

* updated some error mesgs; now prints a warning if flags not set explicitly, if set to a wrong value, return an error; updated tests to fit new error messages

* --image flag message edit

* removed warning; instead print info about disabled push a build unconditionally
2022-07-12 19:24:13 +00:00
Matej Vasek 3b198cb781
fix: image push authorization check (#1109)
Check that we can actually push image.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-12 18:44:13 +00:00
David Simansky a1c7446c73
Update Knative dependencies to v1.3 (0.30) (#1107) 2022-07-12 16:51:13 +00:00