Commit Graph

1330 Commits

Author SHA1 Message Date
Matej Vasek a9e52815bc
fix: OCI content creation by "host" builder on Win (#1871)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-07-18 17:29:09 +00:00
Luke Kingland ba798408de
src: update func-runtime-go and dapr (#1836)
* func-rumtime-go v0.2.4

* dapr v1.11.1

* func-runtime-go v0.3.2
2023-07-18 09:57:10 +00:00
Knative Automation ab5bbe1ad4
Update community files (#1862)
Signed-off-by: Knative Automation <automation@knative.team>
2023-07-13 02:23:14 +00:00
Luke Kingland 4719a43530
adds ADDRESS env to deployed (#1837)
Requests that deployed functions listen on all interfaces by default by
providing an ADDRESS environment variable.
2023-07-12 20:15:14 +00:00
Knative Automation 1b4c493966
Update community files (#1860)
Signed-off-by: Knative Automation <automation@knative.team>
2023-07-12 02:29:13 +00:00
Zbynek Roubalik 79c36eefdc
use Tekton Resolvers for a standard on cluster build (#1843)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-07-11 17:41:13 +00:00
Knative Automation 6f627c9340
Update community files (#1855)
Signed-off-by: Knative Automation <automation@knative.team>
2023-07-11 13:50:12 +00:00
Matej Vasek ce4b05b33f
chore: update tekton client library (#1856)
This prevents `send on closed channel` panic.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-07-11 12:20:12 +00:00
Zbynek Roubalik 20d20985cc
doc: list demos in the Readme (#1854)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-07-10 20:13:12 +00:00
github-actions[bot] f671918124
chore: update Quarkus platform version to 3.2.0.Final (#1844)
Co-authored-by: Knative Automation <automation@knative.team>
2023-07-05 19:00:39 +00:00
Luke Kingland b38d19b2af
rebuild templates on make update-runtimes (#1835) 2023-06-30 19:24:28 +00:00
Luke Kingland 883dcbb203
src: make test and check go (#1828)
- Updates make test-go to include scaffolding
- Creates make check-go to run basic source quality checks
2023-06-30 05:37:27 +00:00
Nitish Chauhan c15450177a
adding support for .funcignore file (#1815)
* adding suppor for funcignore file

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* resolving unit test and linting error

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* adding unit tests and symlink

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* making requested changes in tests

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* making requested changes

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* changing the comment

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* resolving unit test error in windows

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

---------

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>
2023-06-28 20:36:03 +00:00
Knative Automation d6666d37e5
Update community files (#1834)
Signed-off-by: Knative Automation <automation@knative.team>
2023-06-28 14:31:02 +00:00
Lance Ball 803e7e6d07
chore: add presubmit-unit-tests Makefile target (#1833)
This commit adds a Makefile target that will simulate the Prow presubmit
tests that are run for pull requests on GitHub. It makes use of the same
image used by Prow, and runs the ./test/presubmit-tests.sh script so
that developers can run the same suite of tests that are run in CI/CD.

Signed-off-by: Lance Ball <lball@redhat.com>
2023-06-28 08:32:53 +00:00
Lance Ball b6b15f9d37
chore: quiet template tests for quarkus, springboot & rust (#1832)
Signed-off-by: Lance Ball <lball@redhat.com>
2023-06-27 15:04:52 +00:00
Matej Vasek 504b40b8eb
Cluster integration tests cleanup (#1829)
* test: better cleanup

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

* test: k8s dialer test improvements

* Use deployment, not pod directly.
* Use gcr.io/knative-samples/helloworld-go instead of nginx.

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

* refactor: dialer ctor accepts k8s config as param

This is in general better design since ctor does not relay on global
state in form of environment variable.
This also allows to run tests in parallel against various clusters.

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

* test: do run tests in a new namespace

Not all cluster users can create a new namesapce.
If we want to run test against non-admin users namespace must be ensured
by test invoker.

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

* test: better deletion policy

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

* test: better random resource names

Related resource have common random suffix.

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-27 14:54:52 +00:00
Lance Ball 2bf1065266
chore: use a custom presubmit_tests.sh script (#1808)
The Knative test infrastructure runs presubmit tests which are defined
in vendor/knative.dev/hack/presubmit-tests.sh. This has been running in
test and release infrastructure. It is possible to customize the
behavior of this script by defining a handful of functions. The function
definitions provided here ensure that we are running tasks that are
already being run with the default (e.g. verify-codgen.sh) but make use
of our existing build and test targets.

(There also seems to be a stray version of this that I committed a
couple of years ago. That has been removed as it is in the wrong
location for test-infra and was never used anyway.)

Relates to: https://github.com/knative/func/issues/1333

Signed-off-by: Lance Ball <lball@redhat.com>
2023-06-27 14:09:52 +00:00
Luke Kingland 19509e5053
feat: scaffolded functions certs (#1823) 2023-06-26 18:57:51 +00:00
Matej Vasek cbd6b04986
fix: choosePort for host-runner (#1825)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-26 18:24:51 +00:00
Luke Kingland 8a078cea0c
src: make update-runtimes (#1822)
- Updates func-runtime-go 20 v0.2.3
- Create an 'update-runtimes' make target
- Standardizes plurality of "Cloudevents" throughout
2023-06-22 07:00:35 +00:00
Luke Kingland 264507dc8b
src: speed up tests by building with a test platform (#1820) 2023-06-22 06:58:35 +00:00
github-actions[bot] 7b5bd335d5
chore: update Quarkus platform version to 3.1.2.Final (#1816)
Co-authored-by: Knative Automation <automation@knative.team>
2023-06-21 18:16:34 +00:00
Luke Kingland 512ef230e6
chore: test cluster versions update (#1819)
* test cluster versions update

Updates versions used for the test clutser, and includes a change
to use a specific kind node version rather than the kubernetes version per
Kind's docs.

- knative_serving v1.10.1
- knative_eventing v1.10.1
- contour v1.10.0
- kubectl v1.27.2
- dapr v1.10.0
- helm v3.12.0
- kind v0.19.0
- kind_node v1.27.1

* remove dapr dashboard patch

* dapr init flags resuscitation
2023-06-21 15:30:34 +00:00
Luke Kingland 278ce6b0d8
src: refactor builder concurrency test (#1821) 2023-06-21 11:18:36 +00:00
Nitish Chauhan f93b23290c
adding service account support (#1812)
* adding service account support

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* correcting formatting

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

---------

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <mvasek@redhat.com>
2023-06-21 07:44:35 +00:00
Luke Kingland 8dc5a76d24
feat: enable host-built functions' dependencies (#1790) 2023-06-21 05:50:34 +00:00
Luke Kingland 51cb15b78a
feat: enable host builder via cli (#1748) 2023-06-20 17:33:34 +00:00
Luke Kingland 94582efa49
src: interstitial commit version (#1817)
The Knative version is now included in version command verbose output

Building an unreleased version no longer returns v0.0.0, but instead the
value provided by `git describe --tags` which is the most recent tagged
release with a suffix consisting of the number of commits since that
release and the short hash.

Verbose output now always includes the current commit on a dedicated
line.
2023-06-20 17:15:34 +00:00
Sascha Grunert c1a90f65f2
Add support for `serviceAccountName` on deploy (#1811)
This allows setting the service account for the resulting knative
service, which must pre-exist in the namespace to let the deployment
succeed.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-06-19 16:46:54 +00:00
Matej Vasek 3d1176680d
fix: bad connection handling for in cluster dialer (#1800)
* fix: bad connection handling for in cluster dialer

Connections were closed from wrong end of io.Pipe
which resulted in confusing error logs.

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

* feat: DialContext() better error handling

Now DialContext() returns some errors immediately
instead of deferring it Read/Write operation on the returned connection.

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

* feat: DialContext() more better error handling

Now ContextDial() tries to parse socat's stderr and translate it to Go's net.OpError
instead of just creating error with whole stderr embedded in it.

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

* Apply suggestions from code review

Co-authored-by: Lance Ball <lball@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Lance Ball <lball@redhat.com>
2023-06-19 06:23:53 +00:00
Luke Kingland cabba3f9d3
feat: start timeout for host runs (#1782)
* feat: start timeout for host runs

* refactor timeout function

* hide flag until a valid path
2023-06-16 19:57:49 +00:00
Andrejus Chaliapinas f6c11c94af
Added Rust templates linting (#1814)
* Adding Lint for Rust templates

* Run CI on my branch

* Remove CI on non-main branch
2023-06-14 17:03:47 +00:00
Thomas Risberg 339608a733
Update springboot template pom.xml dependencies (#1807)
- update to use spring-cloud.version 2022.0.3
- remove springboot.platform.version property, not needed, rely on parent version
- remove import scope and pom type from spring-boot dependencies
2023-06-14 17:02:46 +00:00
Nitish Chauhan d3a6d6c60c
adding default builders (#1796)
* adding default builders

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* adding yaml format output option

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* fixing typo

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

* making changes in flag

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>

---------

Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>
2023-06-14 17:01:46 +00:00
Matej Vasek 8a8639ae00
src: more verbose output (#1810)
* fixup: more verbose output

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

* fixup: refactor extract version into variable

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-13 17:58:45 +00:00
Matej Vasek 83bc889b6c
src: use ghcr.io for dapr components in GH Action (#1809)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-12 16:21:45 +00:00
Luke Kingland 25ec89d52c
feat: platform build options (#1780)
Plumbs through the platform CLI flag to the individual builders by
creating a client-level BuildOption functional option, and modifying the
builder interface to accept an optional set of requested target
platforms.
2023-06-12 14:04:03 +00:00
Sascha Grunert 529957e837
Cleanup Rust cloudevents example (#1799)
By:

- Using a more opinionated release profile to optimize binary
- Removing not required dependencies
- Updating the rest of the dependencies
- Switch to Rust edition 2021
- Cleanup imports by importing the concrete types
- Avoid unnecessary type assertions
- Do not unwrap port

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-06-10 03:32:59 +00:00
Nitish Chauhan 890d440037
added shorthand -R for --remote flag (#1797)
Signed-off-by: ntishchauhan0022 <nitishchauhan0022@gmail.com>
2023-06-09 18:54:59 +00:00
Luke Kingland 0ef55f8036
src: cleanup the run timeout loop and check (#1804)
* src: cleanup the run timeout loop and check

* Update pkg/functions/runner.go

---------

Co-authored-by: Matej Vasek <matejvasek@gmail.com>
2023-06-09 16:52:00 +00:00
Sascha Grunert 44978970f6
Cleanup Rust http example (#1798)
By:

- Using a more opinionated release profile to optimize binary
- Removing not required dependencies
- Updating the rest of the dependencies
- Cleanup imports by importing the concrete types
- Avoid unnecessary type assertions
- Do not unwrap port

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-06-09 13:10:59 +00:00
Aleksander Slominski 8489a0d08b
Check error before defer body close, include timeout in error message (#1803) 2023-06-09 00:52:58 +00:00
Matej Vasek 18fe6430a1
chore: update to Go 1.20 (#1802)
* chore: update to Go 1.20

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

* fixup: update codegen

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

* fixup: update golangci-lint

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-08 21:22:58 +00:00
Matej Vasek 6b97fb5a3c
test: integration test for tekton on cluster build (#1789)
* test: integration tests for Tekton builds

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

* fixup: disable s2i integration test for now

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

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-07 21:47:57 +00:00
Jefferson Ramos 5034bd31d2
chore: test build tags and removal of iteractive tests on Windows (#1794) 2023-06-07 19:17:57 +00:00
github-actions[bot] 0cce3f01ce
chore: update Quarkus platform version to 3.1.1.Final (#1793)
Co-authored-by: Knative Automation <automation@knative.team>
2023-06-07 17:47:57 +00:00
Matej Vasek 4386689f41
cleanup: run test operations in dedicated ns (#1791)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-06-07 07:21:57 +00:00
Jefferson Ramos 2af040f5b7
chore: default s2i builder as var for ldflags (#1787) 2023-06-06 21:51:26 +00:00
Luke Kingland e5aff92984
feat: enable scaffolding for host builds (#1750)
* feat: enable scaffolding in builder

* fix a few typos

* error text formatting

Co-authored-by: Lance Ball <lball@redhat.com>

* error text formatting

Co-authored-by: Lance Ball <lball@redhat.com>

* remove test job stop defer

---------

Co-authored-by: Lance Ball <lball@redhat.com>
2023-06-06 20:37:26 +00:00