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
Matej Vasek
a197f8b330
fix: correct error in OpenShift reg.cred.provider ( #1104 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-11 15:04:12 +00:00
Matej Vasek
e1d5229900
fix: use creds from creds store first ( #1103 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-11 14:54:12 +00:00
jwcesign
dad6047e5b
Update to the latest knative version ( #1101 )
...
Signed-off-by: jiang wei <jwcesign@gmail.com>
2022-07-11 08:20:12 +00:00
knative-automation
76c42d9097
Update community files ( #1102 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2022-07-11 02:34:11 +00:00
Matej Vasek
f0a33bd6bf
Fix: try empyt crets as last resort ( #1100 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-08 16:30:08 +00:00
Gunjan Vyas
afd224fe5c
feat: deploy success message also displays the namespace ( #1090 )
...
* func deploy should display namespace
* Modified e2e to consider namespace
* Added Namespace field in DeploymentResult struct
* Modified unit test for client deploy
* e2e fix
2022-07-06 16:34:08 +00:00
Lance Ball
416ada6715
feat!: change 'version' to 'specVersion' ( #1086 )
...
* feat!: change 'version' to 'specVersion'
Changes `func create` to write the last migration value to func.yaml
when a new function is created, and modifies the name in the func.yaml
file to be 'specVersion' instead of 'version' to help reduce confusion.
Adds a migration, and a LastMigration() utility function.
Fixes: https://github.com/knative-sandbox/kn-plugin-func/issues/861
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: remove DefaultVersion
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: review feedback
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: review feedback
Signed-off-by: Lance Ball <lball@redhat.com>
2022-07-01 09:22:45 +00:00
Matej Vasek
80505979f9
Improve usability of `func` CLI for IDE plugins ( #1091 )
...
* Better input handling for non-tty
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Make cred-helper 'not implemented' non fatal error
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-07-01 05:07:42 +00:00
knative-automation
5c211a6778
Update community files ( #1093 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2022-07-01 02:38:42 +00:00
Matej Vasek
d4f96bb694
Preserve func.yaml for Quarkus BP build ( #1092 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-30 18:29:31 +00:00
Zbynek Roubalik
04b32d15c6
feat: check valid runtimes for on cluster build ( #1088 )
...
* feat: check valid runtimes for on cluster build
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
* remove unnecessary import alias
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
* add unit test
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-06-30 13:24:31 +00:00
Jefferson Ramos
81091863e7
test: explicit define builder for e2e tests tied to golang as test remote repo, config and envs ( #1081 )
2022-06-29 13:35:30 +00:00
Daniel
5f8c01829e
feat: introduce echo return for Python http template ( #1078 )
...
* Introduce echo return for Python http template
* Updated tests and regenerated zz* file
* Updated output to dict-only
* Changed output type from Python dict literal to proper JSON
2022-06-28 16:21:30 +00:00
knative-automation
bb831c7c12
Update actions ( #1082 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-28 02:16:29 +00:00
Matej Vasek
d5748f0e4e
Improve error message for s2i unsupported runtimes ( #1080 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-27 20:41:28 +00:00
Matej Vasek
f066218042
Add --platform flag for build/deploy sub-cmd ( #1076 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-22 16:40:23 +00:00
Matej Vasek
c550ac1e53
Do not codecov ./templates ( #1074 )
...
Templates are not tested in a way that supports codecov.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-21 12:20:21 +00:00
Josh Gavant
3b9d6c2ee0
doc: add closing mark ( #1073 )
...
Without this the following section is unintentionally included in the code quote.
2022-06-20 07:07:16 +00:00
Matheus Cruz
f828b0998c
feat: add echo for springboot http template ( #1072 )
...
* feat: add echo func
* chore: package
* docs: update docs
* refactor: add space between headers
* refactor: regenerate zz file
* refactor: clean with pre-commit
* refactor: add func_yaml-schema.json file
* refactor: rename test and fix white-spaces
* refactor: remove .idea files
* test: change http test
* test: change expected result
2022-06-17 17:05:18 +00:00
Lance Ball
80093d66a4
fix: do not prompt user if --build diabled ( #1071 )
...
Fixes: https://github.com/knative-sandbox/kn-plugin-func/issues/693
Signed-off-by: Lance Ball <lball@redhat.com>
2022-06-16 22:39:17 +00:00
Matej Vasek
91e80c0a3c
fix: minor improvements for s2i build ( #1068 )
...
* fix: close opened file
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fix: symlink handling for build context upload
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-16 20:08:18 +00:00
Jefferson Ramos
d1dc7e6ad1
fix: workaround for missing func.yaml on tekton step result ( #1070 )
2022-06-16 18:09:17 +00:00
Lance Ball
af916e7dd7
doc: fix some func.yaml fields ( #1069 )
...
* doc: fix some func.yaml fields
Addresses recent changes in func.yaml processing. Not all fields
for the file are documented. I'm not sure if they all should be.
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup whitespace
Signed-off-by: Lance Ball <lball@redhat.com>
2022-06-16 17:16:17 +00:00
Matej Vasek
51b99c0e67
fix: premature Close() of docker client ( #1066 )
...
* Fix docker client lifecycle
Avoid premature Close() of docker client.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Guard for usage of docker client after close
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-16 17:14:17 +00:00
Luke Kingland
7a60394be6
feat: add all build flags to deploy ( #1065 )
...
* spelling
* feat: full build options on deploy
* increase e2e lifecycle test timeout to 45m
* remove redundant flag shorthand b
* map flags for parsing
2022-06-16 16:02:17 +00:00
David Fridrich
e1866f1c86
chore: fix link to on_cluster_build.md ( #1067 )
...
* fix link to on_cluster_build.yaml
* fix link to on_cluster_build.md
2022-06-16 14:19:18 +00:00
Matej Vasek
2721ae6bca
Use "as-dockerfile" mode for s2i builds ( #1063 )
...
The "daemon mode" doesn't work well with `podman`.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-15 20:57:16 +00:00
Luke Kingland
3000a8857a
feat: on run, build only when filesystem changed ( #1031 )
...
* feat: detect built image staleness and utilize on run command
* write directly to sha256 rather than buffer
* client test cleanup
* remove superfluous test println
* ensure runtime dir
* close file opened when testing
* fix typos
* typos and missing test case
2022-06-15 09:56:17 +00:00
salaboy
a454ea9ae9
chore: adds tests for springboot templates ( #1059 )
...
* adding tests for springboot templates
* adding test-springboot to test-template goals
* removing space
* removing vendor license
2022-06-14 17:24:16 +00:00
Matej Vasek
5f6d11c491
Fix premature Close() of docker client ( #1056 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-13 22:46:15 +00:00
knative-automation
df7b5733f1
Update community files ( #1052 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-10 02:34:25 +00:00
knative-automation
dd212c2639
Update community files ( #1051 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-09 14:16:24 +00:00
Luke Kingland
a6ce010b96
remove third-party echo test from CI ( #1048 )
2022-06-09 12:11:39 +00:00
Luke Kingland
b40911b67c
fix: map invoke format flag ( #1041 )
2022-06-09 09:12:40 +00:00
Zbynek Roubalik
6030676ec6
chore: print correct logs for failed PipelineRun ( #1046 )
...
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-06-09 09:11:38 +00:00
Matej Vasek
0aa8fe81bd
Better error message for podman auto service ( #1030 )
...
* Better error message for podman auto svc
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* change per review request
Co-authored-by: Lance Ball <lball@redhat.com>
Co-authored-by: Lance Ball <lball@redhat.com>
2022-06-09 07:03:38 +00:00
Matej Vasek
01aba8ad1c
Use JSON as default msg for the invoke sub-cmd ( #1042 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-09 06:59:38 +00:00
Matej Vasek
c592cd2a41
Increase service wait timeout ( #1043 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-08 20:19:38 +00:00
Matej Vasek
afe8a959ca
Plain JSON body in func invoke with HTTP ( #1039 )
...
Do not use form encoding.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-06-08 11:30:37 +00:00
knative-automation
9f7be6ec43
Update community files ( #1040 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-08 02:24:37 +00:00
Luke Kingland
5e26510f9d
feat: builder images map migration ( #1033 )
...
* feat: function builder images migration
* fix typos and comments
2022-06-07 11:15:36 +00:00
Luke Kingland
fba0dc6af6
fix: increase timeout when testing int cluster availability ( #1032 )
2022-06-06 09:31:54 +00:00
Luke Kingland
17dc507c25
feat: pack builder images individually configurable ( #1028 )
2022-06-03 20:31:52 +00:00
knative-automation
ab12aa7029
Update community files ( #1035 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-03 02:23:51 +00:00
Lance Ball
ed454fa05c
chore(release): 0.24.0 ( #1034 )
2022-06-01 17:24:24 +00:00
knative-automation
909584ed0f
Update actions ( #1026 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2022-06-01 02:30:23 +00:00