Commit Graph

1303 Commits

Author SHA1 Message Date
Lumír 'Frenzy' Balhar 36d7b23b66
Add Python templates for gunicorn and uwsgi + Flask (#1655)
* Add Python templates for gunicorn and uwsgi + Flask

These templates represents the most common and simple ways
how to implement FAAS in Python either directly via gunicorn
or using Flask and uwsgi.

* feat: runtime envvar definition in templates

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

* fixup: use APP_MODULE not app.sh

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

* fixup: update docs

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

* test: better diffing in tests

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

* fixup: update tests

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

* fixup: style

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <mvasek@redhat.com>
2023-04-10 19:03:48 +00:00
knative-automation 064ff9b608
Update actions (#1673)
Signed-off-by: Knative Automation <automation@knative.team>
2023-04-10 18:06:48 +00:00
Gunjan Vyas 8f2f290aab
Replace knative.dev/client references to knative.dev/client-pkg (#1671) 2023-04-10 15:59:39 +00:00
Matej Vasek 18d8398ac2
fix: template flag completion (#1670)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-04-07 18:25:20 +00:00
knative-automation 29cfd3e6ba
upgrade to latest dependencies (#1667)
bumping knative.dev/serving ef53449...23f7e2b:%0A  > 23f7e2b Update net-kourier nightly (# 13849)%0A  > 32aacd6 Update net-certmanager nightly (# 13850)%0A  > 5eed3c1 Update net-istio nightly (# 13851)%0A  > 8a027b6 Update net-gateway-api nightly (# 13848)%0A  > 0814d02 upgrade to latest dependencies (# 13846)%0A  > dab78d1 upgrade to latest dependencies (# 13844)%0A  > 9976a2c Update net-kourier nightly (# 13841)%0A  > 0134c27 Update net-contour nightly (# 13840)%0A  > e824c3f Update net-certmanager nightly (# 13842)%0Abumping knative.dev/pkg 696cac8...ee73c93:%0A  > ee73c93 upgrade to latest dependencies (# 2710)%0A  > 4835a4c Eventing TLS: update destination and Kref types (# 2716)%0A  > b7f2774 Made changes to addressable and address status. (# 2713)%0Abumping knative.dev/eventing 7ba0648...d991040:%0A  > d991040 Add transport-encryption feature flag (# 6845)%0A  > 642699b Sync retry option with spec (# 6834)%0A  > 500ae1d [main] Upgrade to latest dependencies (# 6846)%0A  > 4a78a6c Support running SinkBinding tests with inclusion selection behavior  (# 6841)%0A  > df3bd9e [main] Upgrade to latest dependencies (# 6839)%0Abumping knative.dev/networking 2ca8dbc...8174d2b:%0A  > 8174d2b upgrade to latest dependencies (# 785)%0A  > e18ca86 upgrade to latest dependencies (# 784)

Signed-off-by: Knative Automation <automation@knative.team>
2023-04-06 09:58:20 +00:00
Matej Vasek d7660abb3f
doc: refer specific verision of Tekton not latest (#1669)
* doc: refer specific verision of Tekton not latest

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

* fixup

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

* fixup: shell-check

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-04-05 16:51:38 +00:00
Adam Boczek 2502819b61
feat: add pvc-size flag to deploy command (#851) (#1598)
* feat: add pvc-size flag to deploy command (#851)

* feat: move pvc-size from deploy to build func configuration section (#851)

* feat: add setting default value for pvc-size in func.yaml (#851)

* feat: change pvc-size to camel case (#851)

* feat: add omitempty to pvcSize (#851)

* feat: regenerate func yaml schema (#851)

* feat: update docs for deploy command (#851)

* feat: update usage help for the pvc-size flag (#851)
2023-04-05 11:54:39 +00:00
knative-automation ca244204dd
upgrade to latest dependencies (#1657)
bumping knative.dev/serving 74fcd62...ef53449:%0A  > ef53449 Update net-kourier nightly (# 13835)%0A  > e4f3288 Update net-contour nightly (# 13834)%0A  > 307a7e4 remove freezer code from queue proxy (# 13830)%0A  > 92dba5b Update net-gateway-api nightly (# 13833)%0A  > 5791aea Update net-certmanager nightly (# 13832)%0A  > be65250 upgrade to latest dependencies (# 13831)%0A  > bb18a82 upgrade to latest dependencies (# 13825)%0A  > 66c28b6 Update net-contour nightly (# 13822)%0A  > dce7a40 Update net-certmanager nightly (# 13821)%0A  > 8d8c39e Update net-istio nightly (# 13803)%0A  > 137c10f Update net-contour nightly (# 13818)%0A  > fc86653 Fix queue proxy handler setup (# 13815)%0A  > a5612ff Update net-kourier nightly (# 13817)%0A  > bfca504 Update net-certmanager nightly (# 13814)%0A  > dbb13ae upgrade to latest dependencies (# 13813)%0A  > f9b752c Update net-gateway-api nightly (# 13811)%0A  > e5556b4 Update net-contour nightly (# 13804)%0A  > 8d60f19 Update net-certmanager nightly (# 13807)%0A  > 023d909 Update actions (# 13799)%0A  > 7788c57 Update actions (# 13794)%0A  > 971dd38 Update community files (# 13795)%0A  > f031fd4 Update net-certmanager nightly (# 13793)%0A  > 1cfd960 Update net-gateway-api nightly (# 13788)%0A  > dc65c40 Update net-contour nightly (# 13791)%0A  > 5d43b7b Update net-istio nightly (# 13789)%0A  > 65c6d92 Update net-kourier nightly (# 13787)%0A  > 02685bc upgrade to latest dependencies (# 13785)%0A  > d569144 Update net-istio nightly (# 13711)%0A  > 71088a8 Update community files (# 13776)%0A  > 711371c Update net-contour nightly (# 13779)%0A  > 8859807 Update net-kourier nightly (# 13778)%0A  > 9d28f57 Update net-certmanager nightly (# 13777)%0A  > c0dea98 Update net-gateway-api nightly (# 13773)%0A  > 90c61a4 Update net-certmanager nightly (# 13774)%0A  > 677682f Update net-contour nightly (# 13772)%0Abumping knative.dev/pkg b77a78c...696cac8:%0A  > 696cac8 Expose queue proxy request metrics reporting period (# 2362)%0A  > bd3cf51 Printf log message with the right type when showing port (# 2709)%0A  > 4c84b1b Update actions (# 2707)%0A  > 3290ddf Update community files (# 2706)%0A  > 53fc6ab Update actions (# 2705)%0A  > b769fef drop eventing natss from downstream tests (# 2703)%0A  > 511b394 potential fix for flakey tlsBackoff (# 2702)%0A  > 0902ea8 Parameterize WEBHOOK_NAME env key in error message (# 2701)%0A  > c5dd1d1 Update community files (# 2700)%0Abumping knative.dev/networking c692e9e...2ca8dbc:%0A  > 2ca8dbc upgrade to latest dependencies (# 783)%0A  > a2549e2 Update actions (# 782)%0A  > 8139f0f Update actions (# 780)%0A  > 5544973 Update community files (# 781)%0A  > 74471b9 Update community files (# 779)%0Abumping knative.dev/eventing 38a00d8...7ba0648:%0A  > 7ba0648 [main] Upgrade to latest dependencies (# 6832)%0A  > 97a7b77 [main] Upgrade to latest dependencies (# 6830)%0A  > e691b39 removed release label (# 6807)%0A  > 69a3841 Removes the deprecated packages (# 6816)%0A  > a959915 parallel rekt test cleanup (# 6828)%0A  > 88c5dbb [main] Update actions (# 6827)%0A  > d15774f Add sequence reconciler test (# 6817)%0A  > f361a57 [main] Update community files (# 6822)%0A  > 605306c [main] Update actions (# 6819)%0A  > 3c8c86c Add documentation for MTChannelBasedBroker (# 6791)%0A  > ea0b254 fix api docs generation with go1.20 (# 6810)%0A  > 4d5278d Removes replace and ran `go vendor` (# 6795)%0A  > 62eb85e Make autoscaler leader aware (# 6814)%0A  > 5988c42 [main] Upgrade to latest dependencies (# 6812)%0A  > f6ca59b Use released hearthbeats image for testing (# 6808)%0A  > eabc874 updated broken link (# 6786)%0A  > 6a732ff Add basic retry support for hearthbeats utility (# 6809)%0A  > 05f6d84 Heartbeats: quit istio proxy when running in a job (# 6804)%0A  > 472d325 Add rekt based broker conformance test to ensure `broker.spec.config` is immutable (# 6799)%0A  > 5a0064b [main] Update community files (# 6805)%0A  > 1258a4e Fix pod annotations in containersource template (# 6802)%0Abumping knative.dev/client 3bdc232...3a8d646:%0A  > 3a8d646 fix: Fix image tag for nightly builds (# 1796)%0A  > c21e660 fix: Fix tagging of kn container image for latest releases (# 1792)%0A  > a97df12 Update actions (# 1790)%0A  > 7586217 Update actions (# 1786)%0A  > 2dcb8c0 Update community files (# 1789)%0A  > 3e19a35 Helloworld image running with non root user (# 1787)%0A  > 1668720 Update community files (# 1784)%0Abumping knative.dev/hack 3de51af...1421f12:%0A  > 1421f12 Extract tools to knative.dev/toolbox (# 280)%0A  > 3b8ef01 Update community files (# 279)%0A  > 1eebfb3 Update community files (# 278)

Signed-off-by: Knative Automation <automation@knative.team>
2023-04-03 09:24:04 +00:00
Matej Vasek ae1b0c5eef
fix: actix listent on 0.0.0.0 (#1664)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-04-01 14:57:01 +00:00
Andrejus Chaliapinas c6c0f7eb66
Update Rust templates dependencies and UTs for Actix 4.x (#1661) 2023-03-31 15:57:01 +00:00
Jefferson Ramos b85a26eb46
test: cleanup on e2e github test (#1662) 2023-03-31 13:44:01 +00:00
Manoel Marques 1ce5d2b7c3
Replace path with function struct in client api (#1640) 2023-03-31 00:45:00 +00:00
Jefferson Ramos 2a273c98ee
test: adding e2e github oncluster test scenario (#1649) 2023-03-30 22:25:00 +00:00
andrejusc 79430e9542
Update springboot templates to Spring Boot 3.0.5 (#1658)
* Update springboot templates to Spring Boot 3.0.5

* Regenerated embedded file

* Regenerated embedded file one more time
2023-03-30 21:53:00 +00:00
Lance Ball 1095ede8be
chore: adjust shell script quotes (#1656)
Signed-off-by: Lance Ball <lball@redhat.com>
2023-03-30 11:45:01 +00:00
Lance Ball 6012a4afe1
chore: fixup release.sh script (#1652)
* chore: fixup release.sh script

After the repository reorg, the hack/release.sh script is no longer
pointing at the correct task yamls.

Fixes: https://github.com/knative/func/issues/1651

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

* fixup: reviewdog

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

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-03-28 20:30:59 +00:00
Matej Vasek f877aebdd5
chore: update lifecycle image to v0.16.1 (#1653)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-28 17:35:59 +00:00
Manoel Marques c8f22e735b
Minimal initial func.yaml (#1630) 2023-03-27 06:55:57 +00:00
Matej Vasek e458ae0a07
chore update pack dependency (#1650)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-27 06:52:57 +00:00
github-actions[bot] 6a4518454b
chore: update Quarkus platform version to 2.16.5.Final (#1646)
Co-authored-by: Knative Automation <automation@knative.team>
2023-03-23 18:56:53 +00:00
Matej Vasek 73f8773b7d
style: fix lint error (#1648)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-23 18:43:54 +00:00
Matej Vasek 0645af7a41
fix: pre-compile mock binaries instead of 'go run' (#1645)
The 'go run' does internally compile and it prolongs perceived run-time.
This may lead to timeout in some tests.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-22 18:21:55 +00:00
Zbynek Roubalik 8d4db7546d
feat: PAC - add possibility to specify a Git provider (#1638)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-22 13:30:53 +00:00
Zbynek Roubalik c793fd4c88
feat: PAC - dynamically generate Pipeline target branch (#1636)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-22 13:15:53 +00:00
Zbynek Roubalik 85d3d0206e
feat: PAC - try to read git info from local .git config (#1635)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-22 13:10:54 +00:00
Matej Vasek 8eeff81580
fix: s2i build on Windows (#1641)
Make all files executable on Windows s2i build.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-21 21:27:52 +00:00
Matej Vasek 7c724bc2f6
Descriptions in JSON Schema (#1633)
* chore: update schema generation library

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

* feat: description in JSON schema from doc comments

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-20 12:46:54 +00:00
knative-automation 99de349e59
Update actions (#1634)
Signed-off-by: Knative Automation <automation@knative.team>
2023-03-20 02:13:53 +00:00
knative-automation 5e8773843c
Update community files (#1632)
Signed-off-by: Knative Automation <automation@knative.team>
2023-03-17 13:57:42 +00:00
knative-automation 5330e0c170
Update actions (#1631)
Signed-off-by: Knative Automation <automation@knative.team>
2023-03-17 13:52:25 +00:00
Zbynek Roubalik 3dc61c8979
feat: implement `func config git remove` (#1626)
* feat: implement `func config git remove`

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>
2023-03-17 12:09:36 +00:00
Jefferson Ramos 9d00af158b
e2e tests restructuring / refactoring (#1615) 2023-03-16 20:52:59 +00:00
Matej Vasek db1b624988
fix: TCP+TLS docker daemon connection (#1629)
* fix: TCP+TLS docker daemon connection

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

* fixup: skip tls verify if DOCKER_TLS_VERIFY is falsy

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-16 16:01:59 +00:00
Zbynek Roubalik 37fa5c8c1a
feat: properly implement `--config*` flags for `func config git` (#1621)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-14 13:26:00 +00:00
Manoel Marques 55f3d241dd
Include --builder option on func run command (#1614) 2023-03-14 08:23:57 +00:00
Matej Vasek 76a7c632ce
fix: failing CI (#1618)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-13 21:47:56 +00:00
Zbynek Roubalik ed1d963c85
feat: PaC support flags (#1604)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-13 20:44:56 +00:00
Matej Vasek 28eb331df4
chore: more tests on push to main (#1616)
* Run unit tests on various platforms.
* Run end to end tests.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-13 20:43:56 +00:00
Dhruv Garg b03ada6c0d
docs: update broken links in docs to command.txt and command.md (#1613) 2023-03-10 17:50:24 +00:00
Zbynek Roubalik b793f8739a
feat: PAC - add support for S2I (#1610)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-10 12:14:23 +00:00
Matej Vasek 7b85fa5f84
fix: node s2i build when node_modules present (#1612)
* fix: node s2i build when node_modules present

This is workaround for two bug in another components:
* The s2i CLI/library is not honoring the `--exclude` flag when used with
  the `--as-dockerfile` flag.
* The node s2i image is not working if project contains `node_modules`
  directory with NodeJS modules.

If only one of the bugs above were fixed this commit wouldn't be
necessary.

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

* fix: project root escape link detection

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

* fix: ignore node_modules for s2i on cluster build

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

* fixup: style

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-10 12:09:24 +00:00
knative-automation afad45ee8c
Update community files (#1611)
Signed-off-by: Knative Automation <automation@knative.team>
2023-03-09 13:48:22 +00:00
Matej Vasek 9aac5eba68
fix: build stamp computation (#1608)
About the same time that buildStamp was computed .gitignore was modified.
This caused non-deterministic results, because sometimes the
modification was taken into account and sometimed it was not.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-08 23:06:20 +00:00
Matej Vasek 9a9da1ff3f
chore: coverage for e2e tests (#1603)
* chore: coverage for e2e tests

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

* fixup: disable thread sanitiser

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-08 17:53:20 +00:00
Manoel Marques fa3286ccac
Change 'create' help text to indicate mandatory language option (#1607) 2023-03-08 17:41:21 +00:00
Zbynek Roubalik c552aa2e4e
chore: better output for PaC (#1606)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-08 17:34:22 +00:00
knative-automation da83a2bf73
upgrade to latest dependencies (#1591)
bumping knative.dev/serving 59d4c52...74fcd62:
  > 74fcd62 Update net-kourier nightly (# 13775)
  > 6436af6 upgrade to latest dependencies (# 13769)
  > 4d51212 Use `pkgtest.CheckEndpointState` in TestActivationScale instead of raw client (# 13770)
  > 587f587 add missing probes (# 13563)
  > 5e3b4af Adds e2e test for activation-scale (# 13197)
  > b285cb4 Update net-certmanager nightly (# 13762)
  > aab7abe Update net-contour nightly (# 13761)
  > 0cf0da8 Update net-gateway-api nightly (# 13756)
  > efc0bb0 Update net-kourier nightly (# 13760)
  > 6bc4bb2 upgrade to latest dependencies (# 13759)
bumping knative.dev/eventing c5847a9...38a00d8:
  > 38a00d8 Migrate to rekt cronjob package (# 6800)
  > 0e2c389 [main] Upgrade to latest dependencies (# 6798)
  > df2287d [main] Upgrade to latest dependencies (# 6794)
  > 1ff36e1 Support testing ContainerSource with istio (# 6790)
  > a8128e6 [main] Upgrade to latest dependencies (# 6774)
  > 397387e SC settings for ApiServerSource's Receive Adapter's container/deployment  (# 6788)
  > b474770 No reason for API ServerSource adapter to not inject istio sidecar (# 6789)
  > 7d7df2d Removes the deprecated DeadLetterChannel in ChannelableStatus (# 6722)
bumping knative.dev/pkg 645afb2...b77a78c:
  > b77a78c upgrade to latest dependencies (# 2698)
  > 310274d bump golang version in downstream tests (# 2697)
  > fd00e03 Add certs secret name read from env (# 2685)
bumping knative.dev/client e82e749...3bdc232:
  > 3bdc232 upgrade to latest dependencies (# 1773)
bumping knative.dev/networking 5a5f810...c692e9e:
  > c692e9e upgrade to latest dependencies (# 776)
  > 475e232 upgrade to latest dependencies (# 775)

Signed-off-by: Knative Automation <automation@knative.team>
2023-03-08 16:51:20 +00:00
Manoel Marques f2238be7ed
Correctly format Node.js code (#1602) 2023-03-08 12:17:20 +00:00
Marcos Nils cc34d0bc83
docs: add note about not supported on cluster build runtimes. (#1597)
* Add note about not supported on cluster build runtimes.

* fix typo

* remove quarkus from list
2023-03-07 19:58:19 +00:00
Zbynek Roubalik e3b318adff
feat: Pipelines as Code - initial support (pack) (#1594)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-07 15:41:20 +00:00