knative-automation
cd45b6c007
Format go code ( #589 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2021-10-18 10:08:22 +02:00
Preetham
114a5faee3
feat: allow developers to provide Build Envs to buildpacks in `func.yaml` ( #571 )
...
* Enhance func.yaml to provide build envs to buildpacks
* Add schema file deleted by make clean
* Add function ValidateBuildEnvs to config.go
* Addressed review comments
* Revert makefile changes to pkged.go
* Fixed buildpack env update lost in rebase
* Add support for local env in buildEnvs
2021-10-16 00:54:23 -07:00
jrangelramos
151f64f81e
test: Fix quarkus e2e update test template ( #587 )
2021-10-14 12:33:10 -07:00
knative-automation
66fb60904c
Update actions ( #586 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2021-10-14 03:30:42 -07:00
Matthias Wessendorf
7d78de98a8
chore: remove unused Context import ( #570 )
...
* 💄 Remove unused Context import
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
* ♻️ regenerate pkged.go
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2021-10-14 03:15:43 -07:00
Lance Ball
68b0904b17
feat!: rename event templates to 'cloudevents' ( #584 )
...
* feat!: rename event templates to 'cloudevents'
This commit renames the templates for cloudevents to be named "cloudevents".
BREAKING CHANGE
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: update commands.md doc
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: fix make test-templates
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: missed an e2e test change
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: gitignore and pkged.go
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: adjust Makefile recipe for pkged.go
Signed-off-by: Lance Ball <lball@redhat.com>
2021-10-13 14:19:42 -07:00
Fabian Lopez
d2ee140cee
Detect and report unreachable image deployment ( #579 )
...
* detect and report unreachable image deployment
* change error message for private images
Co-authored-by: Lance Ball <lball@redhat.com>
Co-authored-by: Lance Ball <lball@redhat.com>
2021-10-13 06:43:48 -07:00
Matej Vasek
e85a4aa7f3
feat: Save password after user input ( #560 )
...
* Save password after user input
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Improve wording
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Lance Ball <lball@redhat.com>
* Apply suggestions from code review
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
* Improve test
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Fix for symlinks
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Lance Ball <lball@redhat.com>
Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
2021-10-13 06:29:47 -07:00
Matej Vasek
ef7b986900
feat: Improve build performance ( #569 )
...
* Update buildpack deps
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Update licences
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Enable trust for paketo buildpack builder
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Enable trust-builder for newer versions of podman
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fix style
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-10-11 06:17:16 -07:00
Matthias Wessendorf
52fb215c3c
chore: Cloudevents sdk 2.5.0 ( #566 )
...
* Bumping templates to 2.5.0
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
* Bump the project to 2.5.0 as well
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2021-10-11 02:31:15 -07:00
Zbynek Roubalik
0e3c6764ef
fix: improve error message when invalid function name is used ( #567 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-10-07 07:43:27 -07:00
David Simansky
bb8dc74971
Fix plugin version retrieval ( #564 )
2021-10-07 06:42:28 -07:00
Lance Ball
eccc0ad368
chore: improve messaging in func build ( #562 )
...
Fixes: https://github.com/knative-sandbox/kn-plugin-func/issues/552
Signed-off-by: Lance Ball <lball@redhat.com>
2021-10-07 06:41:36 -07:00
Fabian Lopez
7b80790bc9
Fix deployment on k8s cloud providers ( #563 )
...
* fix deployment on k8s cloud providers
* ran update codegen
2021-10-05 13:34:45 -07:00
Matej Vasek
4b47dbba78
Update Quarkus version in templates ( #557 )
...
* Update Quarkus version in templates
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Update Java to 11 in GH actions
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-09-27 14:33:13 -07:00
Fabian Lopez
62b21f0536
avoid unintentional image/registry overwrite ( #551 )
2021-09-24 05:43:23 -07:00
Matej Vasek
b10c48453c
fix: registry URL comparison ( #549 )
...
* fix: registry URL comparison
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* Changed port equivalence
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-09-23 08:04:14 -07:00
knative-automation
0ce0aad507
Update community files ( #554 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2021-09-23 06:37:13 -07:00
Luke Kingland
4fe9fdcab0
feat: create cli ( #547 )
...
* feat: create cli prompts
* feat: display effective runtimes in prompt
replaces the static list of supported runtimes with a dynamic list of
currently installed+available runtimes; called the effective runtimes.
Used for both prompting and validation.
* feat: dynamic create help and error text
Output from create help text and the create commands now show valid
options for both language runtimes and templates.
* feat: runtime tab completion for runtmes and templates
* feat: support FUNC_PARENT_COMMAND in help
* feat: confirmation of successful create
* fix: include name in initial creation
* src: remove unnecessary comments on create name
* fix: associate prompt questions with struct members in create
* e2e: update tests for language flag
* fix: support nonexistent repositories path
Listing installed repositories considers a missing path equivalent to a
lack of installed repositories. This will change to an error when the
logic to determin default config directory, and automatically create
initial structure, is moved into the client library.
* fix: only CLI-validate when no repo override
2021-09-22 13:00:12 -07:00
knative-automation
410f46e1e7
Update actions ( #548 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2021-09-22 02:38:18 -07:00
Lance Ball
4f3e5fdb7a
fix: stop the progress ticker after build completes ( #544 )
...
This actually simplifies the ticker quite a bit by removing the
channel for communicating quit and instead just deferring calling
ticker.Stop()
Fixes: https://github.com/knative-sandbox/kn-plugin-func/issues/542
Signed-off-by: Lance Ball <lball@redhat.com>
2021-09-21 08:19:36 -07:00
Matej Vasek
8e882bc934
Add serveraddress to auth header of docker API ( #543 )
...
* Add serverURL to RegistryAuth
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-09-20 07:52:36 -07:00
Luke Kingland
25f8b4d6ea
fix: update-pkger.sh sed error on osX ( #541 )
...
The script depends on GNU-sed, which is not installed on OS X by
default. This update changes the solution to using a touched file
rather than sed.
2021-09-20 07:40:35 -07:00
Markus Thömmes
163588f5a5
Add knative/hack scripts for updating deps ( #534 )
2021-09-19 16:04:33 -07:00
Lance Ball
01689e7c13
feat: periodically update progress during build ( #537 )
...
Some feedback from the user interviews indicated that people sometimes
get confused by how long it takes to build a function the first time
and are tempted to kill the process. This change updates the progress
message every five seconds for twenty seconds, and if a build takes longer
than that the message remains "Still building".
Not sure if this is really needed, but it was a fun and easy fix.
Signed-off-by: Lance Ball <lball@redhat.com>
2021-09-19 16:02:34 -07:00
Lance Ball
ad4607bd50
fix: hide a fmt.Println behind verbose flag ( #538 )
...
Signed-off-by: Lance Ball <lball@redhat.com>
2021-09-19 16:00:34 -07:00
Omer B
a167b89d5a
Update installing_cli.md ( #539 )
...
closes #441
2021-09-18 09:26:32 -07:00
knative-automation
f1c1779e08
Update actions ( #517 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2021-09-17 08:14:31 -07:00
github-actions[bot]
745d6a4253
chore: release 0.18.0 ( #466 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-09-16 13:32:09 -04:00
Matej Vasek
16ee28c83d
fix: use full image names ( #535 )
...
This is useful when working with `podman` which dislikes short names.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-09-16 08:51:40 -07:00
Markus Thömmes
94e49eb3cd
Vendor dependencies ( #531 )
...
* Vendor dependencies
* Update pkger again
* Roll back go.sum changes
2021-09-16 04:42:39 -07:00
knative-automation
c8fd06d288
Update community files ( #530 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2021-09-16 03:57:39 -07:00
Matej Vasek
4236ba9287
Better credentials handling ( #526 )
...
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-09-16 02:57:39 -07:00
Markus Thömmes
3bceab840d
Revert linting action to the canonical version ( #533 )
2021-09-16 02:46:39 -07:00
Luke Kingland
90c60b693d
fix: removal of repositories ( #524 )
2021-09-15 06:48:08 -07:00
knative-automation
07dda2b577
Update community files ( #525 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2021-09-15 02:02:08 -07:00
David Simansky
5201c767d1
Update Knative dependencies to v0.24 ( #521 )
2021-09-13 07:43:33 -07:00
Zbynek Roubalik
a73981abe0
src: add test for DeriveImage ( #518 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-09-13 05:34:32 -07:00
Zbynek Roubalik
bb2f306042
chore: properly access repositories ( #519 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-09-10 06:03:30 -07:00
Luke Kingland
e0aad6f936
feat: client effective runtimes list ( #490 )
...
* feat: repositories accessor
* feat: repository and templates client api
- Templates management api
- Repositories management api expansion
* fix: nil pointer reference on generate
* src: test temp directory name consistency and comment improvements
* feat: runtimes accessor
2021-09-09 14:25:30 -07:00
Luke Kingland
ae638c349c
feat: repository management cli ( #514 )
...
* feat: repository management cli
* src: cleanup imports, newlines, spelling and trailing whitespace
2021-09-09 08:09:00 -07:00
Luke Kingland
1125c53d6b
ci: fix tar error on golangci-lint-action ( #516 )
2021-09-09 03:33:58 -07:00
Zbynek Roubalik
8aba038073
fix: `build` should honor registry specified in `-r` ( #510 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-09-08 17:23:58 -07:00
knative-automation
927a26737a
Update actions ( #509 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2021-09-08 11:49:45 -07:00
Lance Ball
71368c6a1d
chore: update files with goimport ( #513 )
...
* chore: update files with goimport
This should get https://github.com/knative-sandbox/kn-plugin-func/pull/509
happy and green.
Signed-off-by: Lance Ball <lball@redhat.com>
* fixup: remove extraneous print statements
Signed-off-by: Lance Ball <lball@redhat.com>
2021-09-08 06:53:45 -07:00
Fabian Lopez
eb17fb819c
chore: example message changes between standalone and plugin ( #507 )
...
* example message changes between standalone and plugin
Signed-off-by: Fabian Lopez <lfabian@vmware.com>
* make template name a parameter in replaceNameInTemplate
Signed-off-by: Fabian Lopez <lfabian@vmware.com>
* use ExecuteTemplate error
Signed-off-by: Fabian Lopez <lfabian@vmware.com>
2021-09-08 06:42:45 -07:00
Luke Kingland
232101d83b
remove superfluous headers from go template ( #515 )
2021-09-08 04:41:34 -07:00
knative-automation
3a6cde0d34
Update community files ( #508 )
...
Signed-off-by: Knative Automation <automation@knative.team>
2021-09-07 00:56:18 -07:00
jrangelramos
0c1dc13e51
test: adding e2e test for remote repository ( #505 )
2021-09-03 10:07:58 -07:00
Zbynek Roubalik
77b019213a
chore: fix typo in `build` help message ( #503 )
...
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-09-02 04:50:06 -07:00