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
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