Commit Graph

908 Commits

Author SHA1 Message Date
knative-automation 4301ca2d42
Update community files (#1215)
Signed-off-by: Knative Automation <automation@knative.team>

Signed-off-by: Knative Automation <automation@knative.team>
2022-09-07 02:14:17 +00:00
Luke Kingland 645990203d
invoke: pack and go are known compatible (#1219) 2022-09-06 22:42:18 +00:00
Matej Vasek fee8dfcb0c
fix: in cluster dialer security context is non-privileged (#1181)
* fix: in cluster dialer sec.ctx. is non-privileged

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

* fixup: drop all capabilities

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

* fixup: seccomp

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

* fixup: unset seccomp profile type

the seccomp profile type must be empty for osh 4.10

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

* fixup: suppress warnings

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

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-06 15:37:43 +00:00
Zbynek Roubalik 317553206a
fix: on cluster build - populate image name if not set (#1213)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-09-06 14:36:45 +00:00
Jefferson Ramos 4041d609dd
test: oncluster build initial e2e set of tests (#1193) 2022-09-05 13:08:22 +00:00
Luke Kingland ae75e5e803
fix: image name derivation and flag precidence (#1185)
* fix: image name derivation and flag precidence

* cleanup

* fix image prompt, reorganize and cleanup

* client deploy image test

* be explicit about registry treatment in tests

* ineffassign

* fix: k8s env not required

* misspell

* minor cleanup

* recombine build and deploy configs

* test namesace choosing logic
2022-09-04 19:37:21 +00:00
knative-automation b117af7c92
Update community files (#1211)
Signed-off-by: Knative Automation <automation@knative.team>

Signed-off-by: Knative Automation <automation@knative.team>
2022-09-01 02:50:17 +00:00
github-actions[bot] f4a410ab0f
chore: update Quarkus platform version to 2.12.0.Final (#1208)
Co-authored-by: Knative Automation <automation@knative.team>
2022-08-31 16:06:18 +00:00
Lance Ball b8c445579b
fix: check for `--image` flag in build command (#1204)
* fix: check for `--image` flag in build command

If the user provides an `--image` flag on the command line, it should be
used. This commit modifies the image resolving code to check whether or
not the image name was provided on the command line.

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

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

* fixup: review feedback

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

Signed-off-by: Lance Ball <lball@redhat.com>
2022-08-31 16:04:17 +00:00
Adam Boczek d8bcf96378
chore: update .gitignore (#215) (#1209) 2022-08-31 13:27:17 +00:00
Ying Chun Guo d0a181bd24
use correct sample repository name in command usage (#1207) 2022-08-31 11:19:16 +00:00
Lance Ball 34499bceee
doc: update generated docs for 'deploy' (#1203)
Signed-off-by: Lance Ball <lball@redhat.com>

Signed-off-by: Lance Ball <lball@redhat.com>
2022-08-30 20:24:16 +00:00
Matej Vasek 6a0b4a2211
fix: flags more consistent between build/deploy (#1202)
Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-08-30 19:16:18 +00:00
Gunjan Vyas 02c0ae775d
chore: update rust dependencies (#1201) 2022-08-30 17:05:16 +00:00
Matej Vasek 56b1db3500
Improve `func config envs` (#1188)
* Added ability to add env non-interactively
* Added ability to list envs as JSON

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

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-08-30 15:41:17 +00:00
Jefferson Ramos 70c6130f55
fix: on cluster builds when buildEnvs contains only one build environment (#1200) 2022-08-30 15:31:17 +00:00
Matej Vasek cd64b70b47
fix: trailing white spaces in genrated docs (#1198)
Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-08-30 13:38:18 +00:00
Lance Ball 1f4db6eab4
chore(release): 0.26.0 (#1195) 2022-08-29 19:36:15 +00:00
Ying Chun Guo ac4497da28
fix a broken link in docs (#1196) 2022-08-29 19:14:15 +00:00
David Simansky c7b1bce369
chore(deps): update Knative dependencies to v1.4 @dsimansk (#1194)
* Update to Golang 1.17

* Update Knative dependencies to v1.4

* Update vendor dir

* Update go version in GH actions

* Fix go.mod

* fixup: update deps

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

* fixup: update deps

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

* fixup: update deps

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

Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <mvasek@redhat.com>
2022-08-25 16:32:19 +00:00
Matej Vasek dca11dad5b
fix: performance of template loading (#1189)
If repo is non-bare git repo treat is as plain FS template,
i.e. do not load it from ".git" date.

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

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-08-25 13:20:19 +00:00
Lance Ball 81289dc757
doc: use cobra markdown generator for command docs (#1169)
This commit removes the docs/reference/commands.txt file and instead
uses the Cobra built-in documentation generator to create markdown
documents for every command.

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

Signed-off-by: Lance Ball <lball@redhat.com>
2022-08-25 13:16:19 +00:00
Zbynek Roubalik 1112aaa2fe
feat: S2I strategy for on cluster build (#1191)
* feat: S2I strategy for on cluster build

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

* use upstream `s2i` task only

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

* use custom func-s2i task

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

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-08-25 13:03:19 +00:00
Luke Kingland e6ec11b0e5
builder short name constants etc throughout (#1180)
* chore: shared builder constants etc

* pretty-print the shared unknown builder error

* update builder impls to use shared defs and validators

* error and docs text formatting

* include static default short names

* comment updates and typos

* docs paths

* use the constants for the in-package builder defaults

* use builders.All but with caviat
2022-08-24 19:34:18 +00:00
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